nastra commented on code in PR #15312:
URL: https://github.com/apache/iceberg/pull/15312#discussion_r3136941239
##########
core/src/main/java/org/apache/iceberg/util/ThreadPools.java:
##########
@@ -102,12 +114,10 @@ private static class AuthRefreshPoolHolder {
}
/**
- * Creates a fixed-size thread pool that uses daemon threads. The pool is
wrapped with {@link
- * MoreExecutors#getExitingExecutorService(ThreadPoolExecutor)}, which
registers a shutdown hook
- * to ensure the pool terminates when the JVM exits. <b>Important:</b> Even
if the pool is
- * explicitly shut down using {@link ExecutorService#shutdown()}, the
shutdown hook is <i>not</i>
- * removed. This can lead to accumulation of shutdown hooks if this method
is used repeatedly for
- * short-lived thread pools.
+ * Creates a fixed-size thread pool that uses daemon threads. The pool will
be stopped by the
+ * shutdown hook to ensure the pool terminates when the JVM exits - unless
`removeShutdownHook` is
Review Comment:
please use proper javadoc format when referring to methods here and in the
other javadoc comments
--
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]