Repository: hbase Updated Branches: refs/heads/branch-1.4 ca269d346 -> f40526b31
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/f40526b3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f40526b3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f40526b3 Branch: refs/heads/branch-1.4 Commit: f40526b31de59bb8c5a19c716a5e89d556fdf651 Parents: ca269d3 Author: Allan Yang <allan...@apache.org> Authored: Wed Sep 26 19:40:43 2018 +0800 Committer: Andrew Purtell <apurt...@apache.org> Committed: Wed Sep 26 11:47:13 2018 -0700 ---------------------------------------------------------------------- .../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/f40526b3/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 602793a..2b83395 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 @@ -2723,7 +2723,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi status.setStatus(msg); if (rsServices != null && rsServices.getMetrics() != null) { - rsServices.getMetrics().updateFlush(time - startTime, + rsServices.getMetrics().updateFlush(time, totalFlushableSizeOfFlushableStores, flushedOutputFileSize); }