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

Hudson commented on YARN-3932:
------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #995 (See 
[https://builds.apache.org/job/Hadoop-Yarn-trunk/995/])
YARN-3932. SchedulerApplicationAttempt#getResourceUsageReport and UserInfo 
should based on total-used-resources. (Bibin A Chundatt via wangda) (wangda: 
rev 76ec26de8099dc48ce3812c595b7ab857a600442)
* 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java
* hadoop-yarn-project/CHANGES.txt
* 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacitySchedulerNodeLabelUpdate.java
* 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java


> SchedulerApplicationAttempt#getResourceUsageReport and UserInfo should based 
> on total-used-resources
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YARN-3932
>                 URL: https://issues.apache.org/jira/browse/YARN-3932
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>             Fix For: 2.8.0
>
>         Attachments: 0001-YARN-3932.patch, 0002-YARN-3932.patch, 
> 0003-YARN-3932.patch, 0004-YARN-3932.patch, 0005-YARN-3932.patch, 
> 0006-YARN-3932.patch, ApplicationReport.jpg, TestResult.jpg
>
>
> Application Resource Report shown wrong when node Label is used.
> 1.Submit application with NodeLabel
> 2.Check RM UI for resources used 
> Allocated CPU VCores and Allocated Memory MB is always {{zero}}
> {code}
>  public synchronized ApplicationResourceUsageReport getResourceUsageReport() {
>     AggregateAppResourceUsage runningResourceUsage =
>         getRunningAggregateAppResourceUsage();
>     Resource usedResourceClone =
>         Resources.clone(attemptResourceUsage.getUsed());
>     Resource reservedResourceClone =
>         Resources.clone(attemptResourceUsage.getReserved());
>     return ApplicationResourceUsageReport.newInstance(liveContainers.size(),
>         reservedContainers.size(), usedResourceClone, reservedResourceClone,
>         Resources.add(usedResourceClone, reservedResourceClone),
>         runningResourceUsage.getMemorySeconds(),
>         runningResourceUsage.getVcoreSeconds());
>   }
> {code}
> should be {{attemptResourceUsage.getUsed(label)}}



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

Reply via email to