Repository: hbase Updated Branches: refs/heads/master 0e173d38b -> 7b2f5950e
HBASE-21212 Wrong flush time when update flush metric Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/7b2f5950 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/7b2f5950 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/7b2f5950 Branch: refs/heads/master Commit: 7b2f5950edeec0153c01d4da85280d40eedc169a Parents: 0e173d3 Author: Allan Yang <allan...@apache.org> Authored: Wed Sep 26 19:38:15 2018 +0800 Committer: Allan Yang <allan...@apache.org> Committed: Wed Sep 26 19:38:15 2018 +0800 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/7b2f5950/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java ---------------------------------------------------------------------- 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 3e5a543..fc33512 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 @@ -2858,7 +2858,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); }