YARN-2972. DelegationTokenRenewer thread pool never expands. Contributed by Jason Lowe

(cherry picked from commit 2b4b0e8847)
This commit is contained in:
Junping Du 2014-12-17 17:40:00 -08:00
parent dda1fc169d
commit 11e4ec52a1
2 changed files with 4 additions and 1 deletions

View File

@ -106,6 +106,9 @@ Release 2.7.0 - UNRELEASED
YARN-2762. Fixed RMAdminCLI to trim and check node-label related arguments
before sending to RM. (Rohith Sharmaks via jianhe)
YARN-2972. DelegationTokenRenewer thread pool never expands. (Jason Lowe
via junping_du)
OPTIMIZATIONS
BUG FIXES

View File

@ -148,7 +148,7 @@ public class DelegationTokenRenewer extends AbstractService {
.setNameFormat("DelegationTokenRenewer #%d")
.build();
ThreadPoolExecutor pool =
new ThreadPoolExecutor((5 < nThreads ? 5 : nThreads), nThreads, 3L,
new ThreadPoolExecutor(nThreads, nThreads, 3L,
TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
pool.setThreadFactory(tf);
pool.allowCoreThreadTimeOut(true);