You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ac...@apache.org on 2019/03/13 01:17:51 UTC

[hbase] branch branch-1 updated: HBASE-22045 Mutable range histogram reports incorrect outliers

This is an automated email from the ASF dual-hosted git repository.

achouhan pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1 by this push:
     new 701c29b  HBASE-22045 Mutable range histogram reports incorrect outliers
701c29b is described below

commit 701c29b30be4c660bba5705138f70d5fa4e72bb8
Author: Abhishek Singh Chouhan <ab...@gmail.com>
AuthorDate: Tue Mar 12 11:24:57 2019 -0700

    HBASE-22045 Mutable range histogram reports incorrect outliers
---
 .../main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java
index a12dc27..e15d0a8 100644
--- a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java
+++ b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java
@@ -80,7 +80,7 @@ public abstract class MutableRangeHistogram extends MutableHistogram implements
       priorRange = ranges[i];
       cumNum = val;
     }
-    long val = histogram.getCount();
+    long val = snapshot.getCount();
     if (val - cumNum > 0) {
       metricsRecordBuilder.addCounter(
           Interns.info(name + "_" + rangeType + "_" + ranges[ranges.length - 1] + "-inf", desc),