Details
-
Sub-task
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
YARN-4248 introduced the REST API for submit/update/delete Reservations. Class TestRMWebServicesReservation intends to test both FS and CS. The test cases designed for fair scheduler actually test capacity scheduler. The following code in method configureServlets shows it sets the scheduler to CS even test cases are for fair scheduler.
conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class, ResourceScheduler.class); CapacitySchedulerConfiguration csconf = new CapacitySchedulerConfiguration(conf); String[] queues = { "default", "dedicated" }; csconf.setQueues("root", queues); csconf.setCapacity("root.default", 50.0f); csconf.setCapacity("root.dedicated", 50.0f); csconf.setReservable("root.dedicated", true);