HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed...
authorChen Liang <cliang@apache.org>
Fri, 11 Jan 2019 20:51:07 +0000 (12:51 -0800)
committerChen Liang <cliang@apache.org>
Fri, 11 Jan 2019 20:51:07 +0000 (12:51 -0800)
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/DecayRpcScheduler.java

index 512b0b7..5410aeb 100644 (file)
@@ -233,7 +233,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);