[
https://issues.apache.org/jira/browse/HDFS-15645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17235494#comment-17235494
]
Jinglun commented on HDFS-15645:
--------------------------------
Hi [~hexiaoqiao], thanks your comments and sorry for my late response ! The
DatanodeManager#getNumOfDataNodes() is used when verifying whether the given ec
policies are supported in the cluster setup. The verify result is true only
when the getNumOfDataNodes() is no less than the number needed by the ec
policies.
Now the case is like HDFS-6397: only the nodes(live and dead) reporting to
NameNode are counted. The nodes that are in dfs.include but haven't reported
are not counted. I think the nodes in dfs.include should be counted too
because they also belong to the cluster. Please correct me if I'm wrong.
Thanks !
> 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]