hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tao Yang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-7591) NPE in async-scheduling mode of CapacityScheduler
Date Fri, 01 Dec 2017 07:06:00 GMT
Tao Yang created YARN-7591:

             Summary: NPE in async-scheduling mode of CapacityScheduler
                 Key: YARN-7591
                 URL: https://issues.apache.org/jira/browse/YARN-7591
             Project: Hadoop YARN
          Issue Type: Bug
          Components: capacityscheduler
    Affects Versions: 3.0.0-alpha4, 2.9.1
            Reporter: Tao Yang
            Assignee: Tao Yang

Currently in async-scheduling mode of CapacityScheduler, NPE may be raised in special scenarios
as below.
(1) The user should be removed after its last application finished, NPE may be raised if getting
something from user object without the null check in async-scheduling threads.
(2) NPE may be raised when trying fulfill reservation for a finished application in {{CapacityScheduler#allocateContainerOnSingleNode}}.
    RMContainer reservedContainer = node.getReservedContainer();
    if (reservedContainer != null) {
      FiCaSchedulerApp reservedApplication = getCurrentAttemptForContainer(

      // NPE here: reservedApplication could be null after this application finished
      // Try to fulfill the reservation
          "Trying to fulfill reservation for application " + reservedApplication
              .getApplicationId() + " on node: " + node.getNodeID());
(3) If proposal1 (allocate containerX on node1) and proposal2 (reserve containerY on node1)
were generated by different async-scheduling threads around the same time and proposal2 was
submitted in front of proposal1, NPE is raised when trying to submit proposal2 in {{FiCaSchedulerApp#commonCheckContainerAllocation}}.
    if (reservedContainerOnNode != null) {
      // NPE here: allocation.getAllocateFromReservedContainer() should be null for proposal2
in this case
      RMContainer fromReservedContainer =

      if (fromReservedContainer != reservedContainerOnNode) {
        if (LOG.isDebugEnabled()) {
              "Try to allocate from a non-existed reserved container");
        return false;

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message