From 605f8a15bb7dabb23f1d397ca28ca0696a390497 Mon Sep 17 00:00:00 2001 From: Reid Chan Date: Fri, 5 Jul 2019 13:51:04 +0800 Subject: [PATCH] HBASE-22656 [Metrics] Table metrics 'BatchPut' and 'BatchDelete' are never updated Signed-off-by: Michael Stack --- .../apache/hadoop/hbase/regionserver/MetricsRegionServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java index 21534cedb10..56135df253a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java @@ -101,7 +101,7 @@ public class MetricsRegionServer { public void updatePutBatch(TableName tn, long t) { if (tableMetrics != null && tn != null) { - tableMetrics.updatePut(tn, t); + tableMetrics.updatePutBatch(tn, t); } if (t > 1000) { serverSource.incrSlowPut(); @@ -125,7 +125,7 @@ public class MetricsRegionServer { public void updateDeleteBatch(TableName tn, long t) { if (tableMetrics != null && tn != null) { - tableMetrics.updateDelete(tn, t); + tableMetrics.updateDeleteBatch(tn, t); } if (t > 1000) { serverSource.incrSlowDelete();