[ 
https://issues.apache.org/jira/browse/HDFS-15645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17231129#comment-17231129
 ] 

Jinglun commented on HDFS-15645:
--------------------------------

Hi [~jianghuazhu], thanks your comments. Yes, there will be dead nodes. In my 
opinion the method getNumOfDataNodes() try to return all the datanodes 
including the dead ones. Before we change it also returns all dead nodes. The 
difference is in the patch the nodes from included file are counted too.

> DatanodeManager.getNumOfDataNodes should consider the include set of host 
> config.
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-15645
>                 URL: https://issues.apache.org/jira/browse/HDFS-15645
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Jinglun
>            Assignee: Jinglun
>            Priority: Major
>         Attachments: HDFS-15645.001.patch
>
>
> Currently the DatanodeManager.getNumOfDataNodes() only count the size of 
> datanodeMap. The nodes from host file's include set should also be counted. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to