From 4cb3da6ac703b10de59a8ca371fe957a4a338601 Mon Sep 17 00:00:00 2001 From: Alexis Daboville Date: Fri, 17 May 2019 15:15:22 +0100 Subject: [PATCH] HADOOP-16248. MutableQuantiles leak memory under heavy load. Contributed by Alexis Daboville, --- .../java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java index 6b30618475..910805e424 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java @@ -107,7 +107,7 @@ public MutableQuantiles(String name, String description, String sampleName, estimator = new SampleQuantiles(quantiles); this.interval = interval; - scheduledTask = scheduler.scheduleAtFixedRate(new RolloverSample(this), + scheduledTask = scheduler.scheduleWithFixedDelay(new RolloverSample(this), interval, interval, TimeUnit.SECONDS); }