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

NodeManager still reports negative running containers

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.8.0, 3.0.0-alpha1
    • nodemanager
    • None
    • Reviewed

    Description

      YARN-1697 fixed a problem where the NodeManager metrics could report a negative number of running containers. However, it missed a rare case where this can still happen.

      YARN-1697 added a flag to indicate if the container was actually launched (LOCALIZED to RUNNING) or not (LOCALIZED to KILLING), which is then checked when transitioning from CONTAINER_CLEANEDUP_AFTER_KILL to DONE and EXITED_WITH_FAILURE to DONE to only decrement the gauge if we actually ran the container and incremented the gauge . However, this flag is not checked while transitioning from EXITED_WITH_SUCCESS to DONE.

      Attachments

        1. YARN-4408.003.patch
          5 kB
          Robert Kanter
        2. YARN-4408.002.patch
          5 kB
          Robert Kanter
        3. YARN-4408.001.patch
          5 kB
          Robert Kanter

        Issue Links

        Activity

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

          People

            rkanter Robert Kanter
            rkanter Robert Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            10 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment