YARN-10954. Remove commented code block from CSQueueUtils#loadCapacitiesByLabelsFromConf. Contributed by Andras Gyori

This commit is contained in:
9uapaw 2021-10-19 13:06:35 +02:00 committed by Szilard Nemeth
parent 025f97c8c2
commit 616cea2e80
1 changed files with 0 additions and 9 deletions

View File

@ -92,15 +92,6 @@ public class CSQueueUtils {
queueCapacities.setWeight(label,
csConf.getLabeledQueueWeight(queuePath, label));
}
/*float absCapacity = queueCapacities.getCapacity(label);
float absMaxCapacity = queueCapacities.getMaximumCapacity(label);
if (absCapacity > absMaxCapacity) {
throw new IllegalArgumentException("Illegal queue capacity setting "
+ "(abs-capacity=" + absCapacity + ") > (abs-maximum-capacity="
+ absMaxCapacity + ") for queue=["
+ queuePath + "],label=[" + label + "]");
}*/
}
}