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

View File

@ -92,15 +92,6 @@ public static void loadCapacitiesByLabelsFromConf(
queueCapacities.setWeight(label, queueCapacities.setWeight(label,
csConf.getLabeledQueueWeight(queuePath, 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 + "]");
}*/
} }
} }