FAQ
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
Reporter: Steve Loughran


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.

Search Discussions

  • Steve Loughran (JIRA) at Aug 4, 2008 at 3:33 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Steve Loughran updated HADOOP-3896:
    -----------------------------------

    Priority: Minor (was: Major)

    marking as minor; the method is only used in TestDatanodeDeath
    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
    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.
  • Robert Chansler (JIRA) at Aug 8, 2008 at 6:14 pm
    [ 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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedAug 4, '08 at 3:33p
activeAug 8, '08 at 6:14p
posts3
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Robert Chansler (JIRA): 3 posts

People

Translate

site design / logo © 2022 Grokbase