YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.
This commit is contained in:
parent
df01469141
commit
8c1bba375b
|
@ -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 + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue