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

Log demand as demand in FSLeafQueue and FSParentQueue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: fairscheduler
    • Labels:
      None
    • Hadoop Flags:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: