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

View File

@ -465,7 +465,7 @@ public String toString() {
"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 @@ String getChildQueuesToPrint() {
StringBuilder sb = new StringBuilder();
for (CSQueue q : childQueues) {
sb.append(q.getQueuePath() +
"usedCapacity=(" + q.getUsedCapacity() + "), " +
" usedCapacity=(" + q.getUsedCapacity() + "), " +
" label=("
+ StringUtils.join(q.getAccessibleNodeLabels().iterator(), ",")
+ ")");