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 908dea8e41
commit 8fffaa7778
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];
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),