HDFS-14367. EC: Parameter maxPoolSize in striped reconstruct thread pool isn't affecting number of threads. Contributed by Guo Lei.

This commit is contained in:
Ayush Saxena 2020-05-12 18:34:26 +05:30
parent 95e4ed18a6
commit ef41229f70
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public void rejectedExecution(Runnable runnable,
private void initializeStripedBlkReconstructionThreadPool(int numThreads) {
LOG.debug("Using striped block reconstruction; pool threads={}",
numThreads);
stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(2,
stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(numThreads,
numThreads, 60, new LinkedBlockingQueue<>(),
"StripedBlockReconstruction-", false);
stripedReconstructionPool.allowCoreThreadTimeOut(true);