Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-49

MiniDFSCluster.stopDataNode will always shut down a node in the cluster if a matching name is not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.20.204.0, 0.20.205.0, 1.1.0
    • Fix Version/s: 2.7.0
    • Component/s: test
    • Labels:
    • Target Version/s:

      Description

      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.datanode;
      if (dn.dnRegistration.getName().equals(name))

      { break; }

      }
      return stopDataNode;
      }

        Attachments

        1. HDFS-49-002.patch
          2 kB
          Steve Loughran
        2. hdfs-49.patch
          1 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified