HBASE-22656 [Metrics] Table metrics 'BatchPut' and 'BatchDelete' are never updated

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Reid Chan 2019-07-05 13:51:04 +08:00
parent 6d5e120596
commit 1fb3fa22fb
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ public class MetricsRegionServer {
public void updatePutBatch(TableName tn, long t) { public void updatePutBatch(TableName tn, long t) {
if (tableMetrics != null && tn != null) { if (tableMetrics != null && tn != null) {
tableMetrics.updatePut(tn, t); tableMetrics.updatePutBatch(tn, t);
} }
if (t > 1000) { if (t > 1000) {
serverSource.incrSlowPut(); serverSource.incrSlowPut();
@ -117,7 +117,7 @@ public class MetricsRegionServer {
public void updateDeleteBatch(TableName tn, long t) { public void updateDeleteBatch(TableName tn, long t) {
if (tableMetrics != null && tn != null) { if (tableMetrics != null && tn != null) {
tableMetrics.updateDelete(tn, t); tableMetrics.updateDeleteBatch(tn, t);
} }
if (t > 1000) { if (t > 1000) {
serverSource.incrSlowDelete(); serverSource.incrSlowDelete();