HBASE-15683 Min latency in latency histograms are emitted as Long.MAX_VALUE

This commit is contained in:
Enis Soztutar 2016-04-21 10:44:03 -07:00
parent ef47e1b68c
commit 9ba9cdeb47
1 changed files with 5 additions and 4 deletions

View File

@ -281,7 +281,8 @@ public class FastLongHistogram {
} }
public long getMin() { public long getMin() {
return this.bins.min.get(); long min = this.bins.min.get();
return min == Long.MAX_VALUE ? 0 : min; // in case it is not initialized
} }
public long getMax() { public long getMax() {