You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/03/09 05:42:32 UTC

[GitHub] [hadoop] hunshenshi opened a new pull request #582: HDFS-14350:dfs.datanode.ec.reconstruction.threads not take effect

hunshenshi opened a new pull request #582: HDFS-14350:dfs.datanode.ec.reconstruction.threads not take effect
URL: https://github.com/apache/hadoop/pull/582
 
 
   In ErasureCodingWorker, stripedReconstructionPool is create by 
   ``` java
   initializeStripedBlkReconstructionThreadPool(conf.getInt(
       DFSConfigKeys.DFS_DN_EC_RECONSTRUCTION_THREADS_KEY,
       DFSConfigKeys.DFS_DN_EC_RECONSTRUCTION_THREADS_DEFAULT));
   
   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);
   }
   ```
   so stripedReconstructionPool is a ThreadPoolExecutor, and the queue is a LinkedBlockingQueue, then the active thread is awalys 2, the dfs.datanode.ec.reconstruction.threads not take effect.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org