[ 
https://issues.apache.org/jira/browse/YARN-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541572#comment-15541572
 ] 

Hudson commented on YARN-5678:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10527 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/10527/])
YARN-5678. Log demand as demand in FSLeafQueue and FSParentQueue. (Yufei 
(kasha: rev 82857037b6e960dccdaf9e6b1b238411498a0dfe)
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSParentQueue.java
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSLeafQueue.java


> Log demand as demand in FSLeafQueue and FSParentQueue
> -----------------------------------------------------
>
>                 Key: YARN-5678
>                 URL: https://issues.apache.org/jira/browse/YARN-5678
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: fairscheduler
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Yufei Gu
>            Assignee: Yufei Gu
>             Fix For: 2.9.0
>
>         Attachments: YARN-5678.001.patch
>
>
> {code}  
> 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);
>   }
> {code}
> Change the "resource consumption" to "resource demand", since at that time 
> resources haven't been consumed yet.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to