xichen01 commented on code in PR #3772:
URL: https://github.com/apache/ozone/pull/3772#discussion_r984421566
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/HttpServer2Metrics.java:
##########
@@ -91,4 +90,10 @@ public void getMetrics(MetricsCollector collector, boolean
all) {
.addGauge(HttpServer2MetricsInfo.HttpServerThreadQueueWaitingTaskCount,
threadPool.getQueueSize());
}
+
+ public void unRegister() {
+ MetricsSystem ms = DefaultMetricsSystem.instance();
+ ms.unregisterSource(NAME);
Review Comment:
Is there a scenario where multiple `HttpServer2` are created in a process,
except in testing, or may exist in the future?
--
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]