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

RM gets stuck with a reservation, ignoring new containers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • resourcemanager
    • None

    Description

      LeafQueue#assignToQueue rejects newly available containers if potentialNewCapacity > absoluteMaxCapacity:

        private synchronized boolean assignToQueue(Resource clusterResource, 
            Resource required) {
          // Check how of the cluster's absolute capacity we are currently using...
          float potentialNewCapacity = 
              Resources.divide(
                  resourceCalculator, clusterResource, 
                  Resources.add(usedResources, required), 
                  clusterResource);
          if (potentialNewCapacity > absoluteMaxCapacity) {
            //... 
            return false;
          }
          return true;
        }
      

      The usedResources, which is used to computed potentialNewCapacity, is composed of both actual and reserved containers. So, a prior reservation could causes RM to reject newly available containers, despite the starvation report.

      Attachments

        1. YARN-1076.patch
          5 kB
          Maysam Yabandeh

        Issue Links

          Activity

            People

              ojoshi Omkar Vinit Joshi
              maysamyabandeh Maysam Yabandeh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: