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

Log demand as demand in FSLeafQueue and FSParentQueue

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment