chenjunjiedada commented on a change in pull request #2295:
URL: https://github.com/apache/iceberg/pull/2295#discussion_r587977029
##########
File path:
spark2/src/main/java/org/apache/iceberg/spark/source/CustomCatalogs.java
##########
@@ -40,6 +43,12 @@
public final class CustomCatalogs {
private static final Cache<Pair<SparkSession, String>, Catalog>
CATALOG_CACHE = Caffeine.newBuilder()
+ .expireAfterAccess(10, TimeUnit.MINUTES)
Review comment:
I am aware of #1674. This is slightly different from #1674, the catalog
is bounded to spark session. I'm thinking whether this can be configurable so
that the user could set an expiration strategy according to different
scenarios. While it is neither not a table property nor a spark session
property.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]