HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.
(cherry picked from commit01cb958af4
) (cherry picked from commita58f466d07
)
This commit is contained in:
parent
c9ff4b7a1b
commit
7b4f44573f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue