You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "guichaoxian (JIRA)" <ji...@apache.org> on 2017/09/21 13:26:00 UTC

[jira] [Created] (SPARK-22090) There is no need for fileStatusCache to invalidateAll when InMemoryFileIndex refresh

guichaoxian created SPARK-22090:
-----------------------------------

             Summary: There is no need for fileStatusCache to invalidateAll  when InMemoryFileIndex refresh 
                 Key: SPARK-22090
                 URL: https://issues.apache.org/jira/browse/SPARK-22090
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.1.0
            Reporter: guichaoxian


the fileStatusCache is globally shared cache,refresh is only for one table,so we do not need to invalidateAll entry in fileStatusCache
{code:java}
  /** Globally shared (not exclusive to this table) cache for file statuses to speed up listing. */
  private val fileStatusCache = FileStatusCache.getOrCreate(sparkSession)
{code}
{code:java}
 override def refresh(): Unit = {
    refresh0()
    fileStatusCache.invalidateAll()
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org