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

Log demand as demand in FSLeafQueue and FSParentQueue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.9.0, 3.0.0-alpha2
    • fairscheduler
    • None
    • Reviewed

    Description

        
      private void updateDemandForApp(FSAppAttempt sched, Resource maxRes) {
          sched.updateDemand();
          Resource toAdd = sched.getDemand();
          if (LOG.isDebugEnabled()) {
            LOG.debug("Counting resource from " + sched.getName() + " " + toAdd
                + "; Total resource consumption for " + getName() + " now "
                + demand);
          }
          demand = Resources.add(demand, toAdd);
          demand = Resources.componentwiseMin(demand, maxRes);
        }
      

      Change the "resource consumption" to "resource demand", since at that time resources haven't been consumed yet.

      Attachments

        1. YARN-5678.001.patch
          3 kB
          Yufei Gu

        Activity

          People

            yufeigu Yufei Gu
            yufeigu Yufei Gu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: