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 14:18:00 UTC
[jira] [Closed] (SPARK-22090) There is no need for fileStatusCache
to invalidateAll when InMemoryFileIndex refresh
[ https://issues.apache.org/jira/browse/SPARK-22090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
guichaoxian closed SPARK-22090.
-------------------------------
> 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