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

Investigate potential race condition in the scheduler nodeUpdate() method

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

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This section of code exists in the various schedulers in the method nodeUpdate():

          // If the node is decommissioning, send an update to have the total
          // resource equal to the used resource, so no available resource to
          // schedule.
          // TODO: Fix possible race-condition when request comes in before
          // update is propagated
          if (nm.getState() == NodeState.DECOMMISSIONING) {
            this.rmContext
                .getDispatcher()
                .getEventHandler()
                .handle(
                    new RMNodeResourceUpdateEvent(nm.getNodeID(), ResourceOption
                        .newInstance(getSchedulerNode(nm.getNodeID())
                            .getAllocatedResource(), 0)));
          }
      

      Investigate the TODO section.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              wilfreds Wilfred Spiegelenburg
              Reporter:
              rchiang Ray Chiang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment