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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.3.0, 3.2.2, 3.1.4, 2.10.2
    • fairscheduler
    • None
    • 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

              wilfreds Wilfred Spiegelenburg
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: