From 7b4f44573f62bacc88392363b57a11f5f31ec382 Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Fri, 11 Jan 2019 12:51:07 -0800 Subject: [PATCH] HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen. (cherry picked from commit 01cb958af44b2376bcf579cc65d90566530f733d) (cherry picked from commit a58f466d074becff11b0757b1b3cf9c8f6bb57a8) --- .../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 e2dd4f78a3b..f294dce5d48 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 @@ -236,7 +236,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);