From 0f8add8a60d159c2933a8fccffd83a64eb73eadc Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 14 Aug 2019 12:24:03 +0900 Subject: [PATCH] HADOOP-16495. Fix invalid metric types in PrometheusMetricsSink (#1244) --- .../metrics2/sink/PrometheusMetricsSink.java | 5 +++-- .../sink/TestPrometheusMetricsSink.java | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java index 291cfe3295..b1e8da8583 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java @@ -46,6 +46,7 @@ public class PrometheusMetricsSink implements MetricsSink { private static final Pattern SPLIT_PATTERN = Pattern.compile("(?