You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Yufei Gu (JIRA)" <ji...@apache.org> on 2017/10/10 01:20:00 UTC

[jira] [Updated] (YARN-7311) TestRMWebServicesReservation doesn't really test fair scheduler

     [ https://issues.apache.org/jira/browse/YARN-7311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yufei Gu updated YARN-7311:
---------------------------
    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 test capacity scheduler instead. The following code in method {{configureServlets}} shows it set the scheduler to CS even test cases are for fair scheduler.
{code}
      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);
{code}

  was:
Class {{TestRMWebServicesReservation}} intends to test both FS and CS. The test cases designed for fair scheduler test capacity scheduler instead. The following code in method {{configureServlets}} shows it set the scheduler to CS even test cases are for fair scheduler.
{code}
      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);
{code}


> TestRMWebServicesReservation doesn't really test fair scheduler
> ---------------------------------------------------------------
>
>                 Key: YARN-7311
>                 URL: https://issues.apache.org/jira/browse/YARN-7311
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: fairscheduler, reservation system
>            Reporter: Yufei Gu
>
> 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 test capacity scheduler instead. The following code in method {{configureServlets}} shows it set the scheduler to CS even test cases are for fair scheduler.
> {code}
>       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);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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