From 7db116ae1b0e30361c283b1ec09a8b919b5c0e92 Mon Sep 17 00:00:00 2001 From: tedyu Date: Sun, 19 Aug 2018 14:24:06 -0700 Subject: [PATCH] HBASE-20917 MetaTableMetrics#stop references uninitialized requestsMap for non-meta region - addendum --- .../apache/hadoop/hbase/coprocessor/MetaTableMetrics.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MetaTableMetrics.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MetaTableMetrics.java index 64a6288c210..3bb47ae062c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MetaTableMetrics.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MetaTableMetrics.java @@ -197,9 +197,8 @@ public class MetaTableMetrics implements RegionCoprocessor { } private boolean isMetaTableOp(ObserverContext e) { - return TableName.META_TABLE_NAME.toString() - .equals(new String(e.getEnvironment().getRegionInfo().getTable().getName(), - StandardCharsets.UTF_8)); + return TableName.META_TABLE_NAME + .equals(e.getEnvironment().getRegionInfo().getTable()); } private void clientMetricRegisterAndMark(ObserverContext e) {