Description
The workQueue length wasn't specified, so the thread number never be increase.
The thread number increase to maximumPoolSize only when the workQueue is full.
file location: org/apache/hadoop/hdfs/server/datanode/erasurecode/ErasureCodingWorker.java
private void initializeStripedBlkReconstructionThreadPool(int numThreads) {
LOG.debug("Using striped block reconstruction; pool threads={}",
numThreads);
stripedReconstructionPool = DFSUtilClient.getThreadPoolExecutor(2,
numThreads, 60, new LinkedBlockingQueue<>(),
"StripedBlockReconstruction-", false);
stripedReconstructionPool.allowCoreThreadTimeOut(true);
}
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-14350 dfs.datanode.ec.reconstruction.threads not take effect
- Resolved