From 1dbe6c9780c3a83e8ef701da03f1a70557f97687 Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Fri, 11 Jan 2019 12:57:30 -0800 Subject: [PATCH] HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen. --- .../src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java index d9dbdbd5c06..f8c8dd357e9 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java @@ -232,7 +232,7 @@ public class DecayRpcScheduler implements RpcScheduler, "the number of top users for scheduler metrics must be at least 1"); // Setup delay timer - Timer timer = new Timer(); + Timer timer = new Timer(true); DecayTask task = new DecayTask(this, timer); timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);