yuqi1129 commented on code in PR #8254:
URL: https://github.com/apache/gravitino/pull/8254#discussion_r2299982565
##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/FilesetCatalogCache.java:
##########
@@ -80,6 +107,14 @@ private Cache<NameIdentifier, FilesetCatalog>
newCatalogCache(
.build();
}
+ private Cache<NameIdentifier, Fileset> newFilesetCache(
+ ScheduledThreadPoolExecutor filesetCleanScheduler) {
+ return Caffeine.newBuilder()
+ .maximumSize(100)
+
.scheduler(Scheduler.forScheduledExecutorService(filesetCleanScheduler))
Review Comment:
In the client size, there is no need to set it explicitly. The reason that I
set it in `CachedClientPool` is that we need to hold the reference of the
`scheduler` or JVM can't clean up the class loader in Gravitino server.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]