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 b3e3085bca
commit 701c29b30b
No known key found for this signature in database
GPG Key ID: D8F2C77939D4FE40
1 changed files with 1 additions and 1 deletions

View File

@ -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),