ddanielr commented on code in PR #5605: URL: https://github.com/apache/accumulo/pull/5605#discussion_r2121762665
########## core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java: ########## @@ -743,4 +753,15 @@ public void setMeterRegistry(MeterRegistry r) { } } + /** + * Called by MetricsInfoImpl.init on the server side if metrics are disabled. ClientContext calls + * {@code #getClientThreadPools(AccumuloConfiguration, UncaughtExceptionHandler)} above. + */ + public void disableThreadPoolMetrics() { + metricsEnabled.set(false); + synchronized (earlyExecutorServices) { + earlyExecutorServices.clear(); Review Comment: Should this clear also get added on line 750 after all the metrics are added from the list? -- 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: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org