From 8c1bba375b144fd515b389174ddb349f2d9246fa Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Wed, 10 Apr 2019 22:51:28 +0800 Subject: [PATCH] YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu. --- .../resourcemanager/scheduler/capacity/CSQueueUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CSQueueUtils.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CSQueueUtils.java index 2dedb188f7..9fd0690a93 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CSQueueUtils.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CSQueueUtils.java @@ -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 + "]"); } } }