HBASE-15683 Min latency in latency histograms are emitted as Long.MAX_VALUE
This commit is contained in:
parent
ef47e1b68c
commit
9ba9cdeb47
|
@ -281,7 +281,8 @@ public class FastLongHistogram {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue