HADOOP-16013. DecayRpcScheduler decay thread should run as a daemon. Contributed by Erik Krogen.

(cherry picked from commit 01cb958af44b2376bcf579cc65d90566530f733d)
(cherry picked from commit a58f466d074becff11b0757b1b3cf9c8f6bb57a8)
This commit is contained in:
Chen Liang 2019-01-11 12:51:07 -08:00 committed by Wei-Chiu Chuang
parent c9ff4b7a1b
commit 7b4f44573f

View File

@ -236,7 +236,7 @@ public DecayRpcScheduler(int numLevels, String ns, Configuration conf) {
"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);