YARN-7245. Max AM Resource column in Active Users Info section of Capacity Scheduler UI page should be updated per-user. Contributed by Eric Payne.

This commit is contained in:
Sunil G 2017-10-09 14:39:41 +05:30
parent 6fe6a72352
commit 8137254a1f

View File

@ -221,8 +221,7 @@ protected void render(Block html) {
ArrayList<UserInfo> users = lqinfo.getUsers().getUsersList();
for (UserInfo userInfo : users) {
ResourceInfo resourcesUsed = userInfo.getResourcesUsed();
PartitionResourcesInfo resourceUsages = lqinfo
.getResources()
PartitionResourcesInfo resourceUsages = userInfo.getResourceUsageInfo()
.getPartitionResourceUsageInfo((nodeLabel == null) ? "" : nodeLabel);
if (nodeLabel != null) {
resourcesUsed = userInfo.getResourceUsageInfo()