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

refreshNodesGracefully() should send recommission event to active RMNodes only

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • graceful
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment