You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ww...@apache.org on 2019/04/10 15:03:32 UTC

[hadoop] branch branch-3.2 updated: YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.

This is an automated email from the ASF dual-hosted git repository.

wwei pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new db185de  YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.
db185de is described below

commit db185de31c51831fd4a786b3e44f06978dcb96eb
Author: Weiwei Yang <ww...@apache.org>
AuthorDate: Wed Apr 10 22:51:28 2019 +0800

    YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.
    
    (cherry picked from commit 8c1bba375b144fd515b389174ddb349f2d9246fa)
---
 .../yarn/server/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 2dedb18..9fd0690 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 @@ 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 + "]");
       }
     }
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org