MonkeyCanCode opened a new pull request, #19100: URL: https://github.com/apache/iceberg/pull/19100
Follow up PR for https://github.com/apache/iceberg/pull/14590. From https://github.com/apache/iceberg/pull/14590, https://github.com/apache/iceberg/issues/18377 was created to fix part of the problem that is leaking closed Spark sessions. However, with Iceberg 1.12, each `RESTSessionCatalog` creates its own `rest-metrics-reporter` executor (https://github.com/apache/iceberg/pull/16695). Those threads lives until catalog is closed. In this case, when the compute engine (e.g. Spark Connect) don't close catalogs during Spark Connection idle session releases, those ended up keep one thread per catalog. This PR adds a `ThreadPools.newFixedThreadPool` variant that exit idle threads after 60 sec idle and don't inherit thread-locals or the context class loader and use it for metrics executor. -- 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]
