Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4386

refreshNodesGracefully() should send recommission event to active RMNodes only

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: graceful
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In refreshNodesGracefully(), during recommissioning, the entryset from getRMNodes() which has only active nodes (RUNNING, DECOMMISSIONING etc.) is used for checking 'decommissioned' nodes which are present in getInactiveRMNodes() map alone.

      for (Entry<NodeId, RMNode> entry:rmContext.getRMNodes().entrySet()) { .........................
       // Recommissioning the nodes
              if (entry.getValue().getState() == NodeState.DECOMMISSIONING
                  || entry.getValue().getState() == NodeState.DECOMMISSIONED) {
                this.rmContext.getDispatcher().getEventHandler()
                    .handle(new RMNodeEvent(nodeId, RMNodeEventType.RECOMMISSION));
              }
      

        Attachments

        1. YARN-4386-v1.patch
          1 kB
          Kuhu Shukla
        2. YARN-4386-v2.patch
          4 kB
          Kuhu Shukla

          Activity

            People

            • Assignee:
              kshukla Kuhu Shukla
              Reporter:
              kshukla Kuhu Shukla
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: