From 3787c729530ab7cf7f759decf2cbe961ff95f497 Mon Sep 17 00:00:00 2001 From: tedyu Date: Sun, 19 Aug 2018 14:25:12 -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) {