HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.
This commit is contained in:
parent
fb8932a727
commit
01cb958af4
@ -233,7 +233,7 @@ public DecayRpcScheduler(int numLevels, String ns, Configuration conf) {
|
|||||||
"the number of top users for scheduler metrics must be at least 1");
|
"the number of top users for scheduler metrics must be at least 1");
|
||||||
|
|
||||||
// Setup delay timer
|
// Setup delay timer
|
||||||
Timer timer = new Timer();
|
Timer timer = new Timer(true);
|
||||||
DecayTask task = new DecayTask(this, timer);
|
DecayTask task = new DecayTask(this, timer);
|
||||||
timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);
|
timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user