MonkeyCanCode commented on code in PR #19100:
URL: https://github.com/apache/iceberg/pull/19100#discussion_r4675600014


##########
core/src/main/java/org/apache/iceberg/util/ThreadPools.java:
##########
@@ -108,6 +110,36 @@ public static ExecutorService newFixedThreadPool(String 
namePrefix, int poolSize
     return Executors.newFixedThreadPool(poolSize, 
newDaemonThreadFactory(namePrefix));
   }
 
+  /**
+   * Creates a fixed-size thread pool that uses daemon threads, which exit 
after being idle for the
+   * given duration.
+   *
+   * <p>Threads do not inherit thread-locals or the context class loader of 
the thread that creates
+   * them, so a pool that is no longer used does not keep its users reachable, 
even if it is never
+   * shut down.
+   */
+  public static ExecutorService newFixedThreadPool(

Review Comment:
   Moved the executor creation into RESTSessionCatalog.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to