Parcourir la source

HADOOP-16248. MutableQuantiles leak memory under heavy load.

Contributed by Alexis Daboville,
Alexis Daboville il y a 6 ans
Parent
commit
4cb3da6ac7

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java

@@ -107,7 +107,7 @@ public class MutableQuantiles extends MutableMetric {
     estimator = new SampleQuantiles(quantiles);
     estimator = new SampleQuantiles(quantiles);
 
 
     this.interval = interval;
     this.interval = interval;
-    scheduledTask = scheduler.scheduleAtFixedRate(new RolloverSample(this),
+    scheduledTask = scheduler.scheduleWithFixedDelay(new RolloverSample(this),
         interval, interval, TimeUnit.SECONDS);
         interval, interval, TimeUnit.SECONDS);
   }
   }