Browse Source

YARN-3247. TestQueueMappings should use CapacityScheduler explicitly. Contributed by Zhihai Xu.

(cherry picked from commit 6cbd9f1113fca9ff86fd6ffa783ecd54b147e0db)
Tsuyoshi Ozawa 10 years ago
parent
commit
13e213c41a

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -613,6 +613,9 @@ Release 2.7.0 - UNRELEASED
     YARN-3238. Connection timeouts to nodemanagers are retried at
     YARN-3238. Connection timeouts to nodemanagers are retried at
     multiple levels (Jason Lowe via xgong)
     multiple levels (Jason Lowe via xgong)
 
 
+    YARN-3247. TestQueueMappings should use CapacityScheduler explicitly.
+    (Zhihai Xu via ozawa)
+
 Release 2.6.0 - 2014-11-18
 Release 2.6.0 - 2014-11-18
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 0
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestQueueMappings.java

@@ -135,6 +135,8 @@ public class TestQueueMappings {
     checkQMapping("a", Q1, cs);
     checkQMapping("a", Q1, cs);
 
 
     csConf = new CapacitySchedulerConfiguration();
     csConf = new CapacitySchedulerConfiguration();
+    csConf.set(YarnConfiguration.RM_SCHEDULER,
+        CapacityScheduler.class.getName());
     setupQueueConfiguration(csConf);
     setupQueueConfiguration(csConf);
     conf = new YarnConfiguration(csConf);
     conf = new YarnConfiguration(csConf);