hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From achou...@apache.org
Subject [hbase] branch branch-1.4 updated: HBASE-22045 Mutable range histogram reports incorrect outliers
Date Wed, 13 Mar 2019 01:21:50 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit e89ed03a8e9cec85dea03ef7205bd12f10ac5b01
Author: Abhishek Singh Chouhan <abhishekchouhan121@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),


Mime
View raw message