YARN-7116. CapacityScheduler Web UI: Queue's AM usage is always show on per-user's AM usage. Contributed by Wangda Tan.
This commit is contained in:
parent
ac12e153a8
commit
f9e0cc8cdc
|
@ -228,9 +228,10 @@ class CapacitySchedulerPage extends RmView {
|
|||
resourcesUsed = userInfo.getResourceUsageInfo()
|
||||
.getPartitionResourceUsageInfo(nodeLabel).getUsed();
|
||||
}
|
||||
ResourceInfo amUsed = (resourceUsages.getAmUsed() == null)
|
||||
? new ResourceInfo(Resources.none())
|
||||
: resourceUsages.getAmUsed();
|
||||
ResourceInfo amUsed = userInfo.getAMResourcesUsed();
|
||||
if (amUsed == null) {
|
||||
amUsed = new ResourceInfo(Resources.none());
|
||||
}
|
||||
String highlightIfAsking =
|
||||
userInfo.getIsActive() ? ACTIVE_USER : null;
|
||||
tbody.tr().$style(highlightIfAsking).td(userInfo.getUsername())
|
||||
|
|
Loading…
Reference in New Issue