YARN-11086. Add space in debug log of ParentQueue. Contributed by Junfan Zhang.

This commit is contained in:
Szilard Nemeth 2022-03-21 14:37:10 +01:00
parent 4537b34e1c
commit e2701e227f
1 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ public class ParentQueue extends AbstractCSQueue {
"numChildQueue= " + childQueues.size() + ", " +
getCapacityOrWeightString() + ", " +
"absoluteCapacity=" + queueCapacities.getAbsoluteCapacity() + ", " +
"usedResources=" + usageTracker.getQueueUsage().getUsed() +
"usedResources=" + usageTracker.getQueueUsage().getUsed() + ", " +
"usedCapacity=" + getUsedCapacity() + ", " +
"numApps=" + getNumApplications() + ", " +
"numContainers=" + getNumContainers();
@ -1148,7 +1148,7 @@ public class ParentQueue extends AbstractCSQueue {
StringBuilder sb = new StringBuilder();
for (CSQueue q : childQueues) {
sb.append(q.getQueuePath() +
"usedCapacity=(" + q.getUsedCapacity() + "), " +
" usedCapacity=(" + q.getUsedCapacity() + "), " +
" label=("
+ StringUtils.join(q.getAccessibleNodeLabels().iterator(), ",")
+ ")");