From 8bfef21efaa8698976e6d80359c66116d7b451ea Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Mon, 1 Apr 2019 19:26:44 +0800 Subject: [PATCH] HDDS-1360. Invalid metric type due to fully qualified class name. Contributed by Doroszlai, Attila. --- .../org/apache/hadoop/hdds/scm/server/SCMContainerMetrics.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMContainerMetrics.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMContainerMetrics.java index 7466142f9db..5e8e13706ad 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMContainerMetrics.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMContainerMetrics.java @@ -42,7 +42,8 @@ import org.apache.hadoop.metrics2.lib.Interns; public class SCMContainerMetrics implements MetricsSource { private final SCMMXBean scmmxBean; - private static final String SOURCE = SCMContainerMetrics.class.getName(); + private static final String SOURCE = + SCMContainerMetrics.class.getSimpleName(); public SCMContainerMetrics(SCMMXBean scmmxBean) { this.scmmxBean = scmmxBean;