Skip to content

Commit 4cb3da6

Browse files
Alexis-Dsteveloughran
authored andcommitted
HADOOP-16248. MutableQuantiles leak memory under heavy load.
Contributed by Alexis Daboville,
1 parent c183bd8 commit 4cb3da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public MutableQuantiles(String name, String description, String sampleName,
107107
estimator = new SampleQuantiles(quantiles);
108108

109109
this.interval = interval;
110-
scheduledTask = scheduler.scheduleAtFixedRate(new RolloverSample(this),
110+
scheduledTask = scheduler.scheduleWithFixedDelay(new RolloverSample(this),
111111
interval, interval, TimeUnit.SECONDS);
112112
}
113113

0 commit comments

Comments
 (0)