virajjasani commented on a change in pull request #1962:
URL: https://github.com/apache/hbase/pull/1962#discussion_r454502335
##########
File path:
hbase-hadoop-compat/src/main/java/org/apache/hadoop/metrics2/lib/MutableRangeHistogram.java
##########
@@ -80,7 +80,7 @@ public void updateSnapshotRangeMetrics(MetricsRecordBuilder
metricsRecordBuilder
long val = snapshot.getCount();
if (val - cumNum > 0) {
metricsRecordBuilder.addCounter(
- Interns.info(name + "_" + rangeType + "_" + ranges[ranges.length -
1] + "-inf", desc),
+ Interns.info(name + "_" + rangeType + "_" + priorRange + "-inf",
desc),
Review comment:
Just a question: Is it possible that ranges[] can be empty?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]