HDFS-14350:dfs.datanode.ec.reconstruction.threads not take effect

This commit is contained in:
hunshenshi 2019-03-09 13:39:47 +08:00
parent 5c13222110
commit 592ec2d1cd
1 changed files with 1 additions and 1 deletions

View File

@ -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);