瀏覽代碼

YARN-10954. Remove commented code block from CSQueueUtils#loadCapacitiesByLabelsFromConf. Contributed by Andras Gyori

9uapaw 3 年之前
父節點
當前提交
616cea2e80

+ 0 - 9
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

@@ -92,15 +92,6 @@ public class CSQueueUtils {
         queueCapacities.setWeight(label,
             csConf.getLabeledQueueWeight(queuePath, label));
       }
-
-      /*float absCapacity = queueCapacities.getCapacity(label);
-      float absMaxCapacity = queueCapacities.getMaximumCapacity(label);
-      if (absCapacity > absMaxCapacity) {
-        throw new IllegalArgumentException("Illegal queue capacity setting "
-            + "(abs-capacity=" + absCapacity + ") > (abs-maximum-capacity="
-            + absMaxCapacity + ") for queue=["
-            + queuePath + "],label=[" + label + "]");
-      }*/
     }
   }