YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.

This commit is contained in:
Weiwei Yang 2019-04-10 22:51:28 +08:00
parent df01469141
commit 8c1bba375b
1 changed files with 3 additions and 2 deletions

View File

@ -72,9 +72,10 @@ public class CSQueueUtils {
float absCapacity = queueCapacities.getAbsoluteCapacity(label);
float absMaxCapacity = queueCapacities.getAbsoluteMaximumCapacity(label);
if (absCapacity > absMaxCapacity) {
throw new IllegalArgumentException("Illegal queue capacity setting, "
throw new IllegalArgumentException("Illegal queue capacity setting "
+ "(abs-capacity=" + absCapacity + ") > (abs-maximum-capacity="
+ absMaxCapacity + "). When label=[" + label + "]");
+ absMaxCapacity + ") for queue=["
+ queueName + "],label=[" + label + "]");
}
}
}