You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Tsuyoshi OZAWA (JIRA)" <ji...@apache.org> on 2014/05/06 18:57:14 UTC

[jira] [Created] (YARN-2025) Possible NPE in schedulers

Tsuyoshi OZAWA created YARN-2025:
------------------------------------

             Summary: Possible NPE in schedulers
                 Key: YARN-2025
                 URL: https://issues.apache.org/jira/browse/YARN-2025
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Tsuyoshi OZAWA
            Assignee: Tsuyoshi OZAWA


In FifoScheduler/FairScheduler/CapacityScheduler#addApplicationAttempt(), we don't check whether {{application}} is null. This can cause NPE in following sequences: addApplication() -> doneApplication() (e.g. AppKilledTransition) -> addApplicationAttempt().
{code}
    SchedulerApplication application =
        applications.get(applicationAttemptId.getApplicationId());
    String user = application.getUser();
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)