hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Chansler (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3896) MiniDFSCluster.stopDataNode will always shut down a node in the cluster if a matching name is not found
Date Fri, 08 Aug 2008 18:13:44 GMT

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

Robert Chansler updated HADOOP-3896:
------------------------------------

    Component/s: dfs

> MiniDFSCluster.stopDataNode will always shut down a node in the cluster if a matching
name is not found
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3896
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3896
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Steve Loughran
>            Priority: Minor
>
> The stopDataNode method will shut down the last node in the list of nodes, if one matching
a specific name is not found
> This is possibly not what was intended. Better to return false or fail in some other
manner if the named node was not located
>  synchronized boolean stopDataNode(String name) {
>     int i;
>     for (i = 0; i < dataNodes.size(); i++) {
>       DataNode dn = dataNodes.get(i).datanode;
>       if (dn.dnRegistration.getName().equals(name)) {
>         break;
>       }
>     }
>     return stopDataNode(i);
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message