YARN-2972. DelegationTokenRenewer thread pool never expands. Contributed by Jason Lowe
(cherry picked from commit 2b4b0e8847
)
This commit is contained in:
parent
dda1fc169d
commit
11e4ec52a1
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue