rdblue commented on a change in pull request #4177: URL: https://github.com/apache/iceberg/pull/4177#discussion_r824174612
########## File path: core/src/main/java/org/apache/iceberg/util/ThreadPools.java ########## @@ -61,6 +62,26 @@ public static ExecutorService getWorkerPool() { return WORKER_POOL; } + public static ExecutorService newWorkerPool(String namePrefix, Integer parallelism) { + return MoreExecutors.getExitingExecutorService( + (ThreadPoolExecutor) Executors.newFixedThreadPool( + Optional.ofNullable(parallelism).orElse(WORKER_THREAD_POOL_SIZE), Review comment: I'm okay either way. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org