From f3c3c7c4226941ec34900d9d3d16521f40a66a2f Mon Sep 17 00:00:00 2001 From: Allan Yang Date: Wed, 26 Sep 2018 19:17:35 +0800 Subject: [PATCH] HBASE-21212 Wrong flush time when update flush metric --- .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index 7afd46fc3bf..e63f0c4dcd3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -2818,7 +2818,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi if (rsServices != null && rsServices.getMetrics() != null) { rsServices.getMetrics().updateFlush(getTableDescriptor().getTableName().getNameAsString(), - time - startTime, + time, mss.getDataSize(), flushedOutputFileSize); }