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