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:
parent
95e4ed18a6
commit
ef41229f70
|
@ -106,7 +106,7 @@ public final class ErasureCodingWorker {
|
||||||
private void initializeStripedBlkReconstructionThreadPool(int numThreads) {
|
private void initializeStripedBlkReconstructionThreadPool(int numThreads) {
|
||||||
LOG.debug("Using striped block reconstruction; pool threads={}",
|
LOG.debug("Using striped block reconstruction; pool threads={}",
|
||||||
numThreads);
|
numThreads);
|
||||||
stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(2,
|
stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(numThreads,
|
||||||
numThreads, 60, new LinkedBlockingQueue<>(),
|
numThreads, 60, new LinkedBlockingQueue<>(),
|
||||||
"StripedBlockReconstruction-", false);
|
"StripedBlockReconstruction-", false);
|
||||||
stripedReconstructionPool.allowCoreThreadTimeOut(true);
|
stripedReconstructionPool.allowCoreThreadTimeOut(true);
|
||||||
|
|
Loading…
Reference in New Issue