You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2019/08/16 22:29:00 UTC

[jira] [Updated] (HDFS-14350) dfs.datanode.ec.reconstruction.threads not take effect

     [ https://issues.apache.org/jira/browse/HDFS-14350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arpit Agarwal updated HDFS-14350:
---------------------------------
    Component/s: ec

> dfs.datanode.ec.reconstruction.threads not take effect
> ------------------------------------------------------
>
>                 Key: HDFS-14350
>                 URL: https://issues.apache.org/jira/browse/HDFS-14350
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode, ec
>    Affects Versions: 3.2.0
>            Reporter: hunshenshi
>            Assignee: hunshenshi
>            Priority: Major
>             Fix For: 3.2.0
>
>
> In ErasureCodingWorker, stripedReconstructionPool is create by 
> {code: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);
> }{code}
> 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 message was sent by Atlassian JIRA
(v7.6.14#76016)

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