rdingankar commented on code in PR #5556:
URL: https://github.com/apache/hadoop/pull/5556#discussion_r1167293044
##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java:
##########
@@ -130,11 +129,11 @@ public MutableQuantiles() {}
public synchronized void snapshot(MetricsRecordBuilder builder, boolean all)
{
if (all || changed()) {
builder.addGauge(numInfo, previousCount);
- for (int i = 0; i < quantiles.length; i++) {
+ for (int i = 0; i < getQuantiles().length; i++) {
Review Comment:
declared a local variable
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]