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

View File

@ -72,9 +72,10 @@ private static void capacitiesSanityCheck(String queueName,
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 + "]");
}
}
}