dlmarion commented on code in PR #5605:
URL: https://github.com/apache/accumulo/pull/5605#discussion_r2121780920
##########
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:
Yes, I have already merged, but I can add this in another PR. Good catch!
--
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]