Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22089

There is no need for fileStatusCache to invalidateAll when InMemoryFileIndex refresh

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.0
    • None
    • SQL
    • None

    Description

      the fileStatusCache is globally shared cache,refresh is only for one table,so we do not need to invalidateAll entry in fileStatusCache

        /** Globally shared (not exclusive to this table) cache for file statuses to speed up listing. */
        private val fileStatusCache = FileStatusCache.getOrCreate(sparkSession)
      
       override def refresh(): Unit = {
          refresh0()
          fileStatusCache.invalidateAll()
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            guichaoxian guichaoxian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: