hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [hadoop] branch branch-3.0 updated: YARN-9463. Add queueName info when failing with queue capacity sanity check. Contributed by Aihua Xu.
Date Wed, 10 Apr 2019 15:06:19 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit 5d85a34b1ff5f90626388e062ddb7fc9b2f5a11d
Author: Weiwei Yang <wwei@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 da1d304..69cc42a 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 @@ 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


Mime
View raw message