[
https://issues.apache.org/jira/browse/HDFS-8682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14634556#comment-14634556
]
J.Andreina commented on HDFS-8682:
----------------------------------
Testcase failures are not related to this issue.
As removing decommissioned node from node list has issue (HDFS-8780) , testcase
related to FSNamesystem#getNumDecomLiveDataNodes and
FSNamesystem#getNumDecomDeadDataNodes are validated properly.So no need for
updating or adding new testcase.
Please review the patch.
> Should not remove decommissioned node,while calculating the number of
> live/dead decommissioned node.
> ----------------------------------------------------------------------------------------------------
>
> Key: HDFS-8682
> URL: https://issues.apache.org/jira/browse/HDFS-8682
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: J.Andreina
> Assignee: J.Andreina
> Attachments: HDFS-8682.1.patch
>
>
> True is passed as argument for removing decommissioned node from live/dead
> node list ,while calculating the number of live/dead decommissioned node.
> public void fetchDatanodes(final List<DatanodeDescriptor> live,
> final List<DatanodeDescriptor> dead, final boolean
> {color:red}removeDecommissionNode{color} )
> In FSNamesystem#*getNumDecomLiveDataNodes* and
> FSNamesystem#*getNumDecomDeadDataNodes* , calculation is done as below.
> getBlockManager().getDatanodeManager().fetchDatanodes(null, dead,
> {color:red}true{color});
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)