jerryshao commented on code in PR #9282: URL: https://github.com/apache/gravitino/pull/9282#discussion_r2591319415
########## catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java: ########## @@ -137,6 +140,23 @@ public class FilesetCatalogOperations extends ManagedSchemaOperations @VisibleForTesting ScheduledThreadPoolExecutor scheduler; @VisibleForTesting Cache<FileSystemCacheKey, FileSystem> fileSystemCache; + private final ThreadPoolExecutor fileSystemExecutor = + new ThreadPoolExecutor( + Math.max(2, Math.min(Runtime.getRuntime().availableProcessors() * 2, 16)), Review Comment: Do we need to keep such threads active for use? My feeling is that most of the threads can be swept when idle to save resources. -- 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]
