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 @@ private static void capacitiesSanityCheck(String queueName,
|
|||||||
float absCapacity = queueCapacities.getAbsoluteCapacity(label);
|
float absCapacity = queueCapacities.getAbsoluteCapacity(label);
|
||||||
float absMaxCapacity = queueCapacities.getAbsoluteMaximumCapacity(label);
|
float absMaxCapacity = queueCapacities.getAbsoluteMaximumCapacity(label);
|
||||||
if (absCapacity > absMaxCapacity) {
|
if (absCapacity > absMaxCapacity) {
|
||||||
throw new IllegalArgumentException("Illegal queue capacity setting, "
|
throw new IllegalArgumentException("Illegal queue capacity setting "
|
||||||
+ "(abs-capacity=" + absCapacity + ") > (abs-maximum-capacity="
|
+ "(abs-capacity=" + absCapacity + ") > (abs-maximum-capacity="
|
||||||
+ absMaxCapacity + "). When label=[" + label + "]");
|
+ absMaxCapacity + ") for queue=["
|
||||||
|
+ queueName + "],label=[" + label + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user