You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/11/05 01:18:54 UTC

[hadoop] branch branch-3.2 updated: HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new a58f466  HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.
a58f466 is described below

commit a58f466d074becff11b0757b1b3cf9c8f6bb57a8
Author: Chen Liang <cl...@apache.org>
AuthorDate: Fri Jan 11 12:51:07 2019 -0800

    HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.
    
    (cherry picked from commit 01cb958af44b2376bcf579cc65d90566530f733d)
---
 .../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 8a2a90f..9866de8 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);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org