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

FSPreemptionThread can cause NullPointerException while app is unregistered with containers running on a node

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.3.0, 3.2.2, 3.1.4
    • Component/s: fairscheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When an application is unregistered there is a chance that there are still containers running on a node for that application. In all cases we handle the application missing from the RM gracefully (log a message and continue) except for the FS pre-emption thread.

      In case the application is removed but some containers are still linked to a node the FSPreemptionThread will crash with a NPE when it tries to retrieve the application id for the attempt:

      FSAppAttempt app =
          scheduler.getSchedulerApp(container.getApplicationAttemptId());
      ApplicationId appId = app.getApplicationId();

        Attachments

        1. YARN-9984.001.patch
          2 kB
          wilfreds#1

        Issue Links

          Activity

            People

            • Assignee:
              wilfreds Wilfred Spiegelenburg
              Reporter:
              wilfreds Wilfred Spiegelenburg

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment