HBASE-22045 Mutable range histogram reports incorrect outliers

This commit is contained in:
Abhishek Singh Chouhan 2019-03-12 11:24:57 -07:00 committed by achouhan@apache.org
parent 8fd1b0afe9
commit d6623cf8f0
No known key found for this signature in database
GPG Key ID: D8F2C77939D4FE40
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public abstract class MutableRangeHistogram extends MutableHistogram implements
priorRange = ranges[i]; priorRange = ranges[i];
cumNum = val; cumNum = val;
} }
long val = histogram.getCount(); long val = snapshot.getCount();
if (val - cumNum > 0) { if (val - cumNum > 0) {
metricsRecordBuilder.addCounter( metricsRecordBuilder.addCounter(
Interns.info(name + "_" + rangeType + "_" + ranges[ranges.length - 1] + "-inf", desc), Interns.info(name + "_" + rangeType + "_" + ranges[ranges.length - 1] + "-inf", desc),