mayankkunwar commented on code in PR #4630:
URL: https://github.com/apache/hive/pull/4630#discussion_r1316867657
##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/metrics2/CodahaleMetrics.java:
##########
@@ -414,6 +415,9 @@ private boolean initCodahaleMetricsReporterClasses() {
try {
// Note: Hadoop metric reporter does not support tags. We create a
single reporter for all metrics.
Constructor<?> constructor = name.getConstructor(MetricRegistry.class,
Configuration.class);
+ if (name.getName().equals(Metrics2Reporter.class.getName())) {
+ DefaultMetricsSystem.shutdown();
Review Comment:
Yeah first time, shutdown is a no-op.
Okay I can add a set and can shutdown DefaultMetricsSystem in close() method
--
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]