You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Attila Sasvari (JIRA)" <ji...@apache.org> on 2017/10/09 17:57:00 UTC

[jira] [Created] (OOZIE-3081) testSubmitWithLauncherQueue fails when FairScheduler is used

Attila Sasvari created OOZIE-3081:
-------------------------------------

             Summary: testSubmitWithLauncherQueue fails when FairScheduler is used
                 Key: OOZIE-3081
                 URL: https://issues.apache.org/jira/browse/OOZIE-3081
             Project: Oozie
          Issue Type: Bug
          Components: tests
    Affects Versions: 5.0.0
            Reporter: Attila Sasvari


Running TestJavaActionExecutor fails with fair scheduler
{code}
Failed tests: testSubmitWithLauncherQueue(org.apache.oozie.action.hadoop.TestJavaActionExecutor): 
 expected:<[]test> but was:<[root.]test>
{code}

Reason: FairScheduler adds a "root." prefix to the queue name in [org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueueManager.ensureRootPrefix()|https://github.com/apache/hadoop/blob/99292adcefdc6b8f280b8e100605fb39f755c38a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/QueueManager.java#L165]

A potential way to fix the test case:
- we can add a new function 
{code}
    private boolean isFairSchedulerUsed(Configuration conf) {
        return conf.get("yarn.resourcemanager.scheduler.class").contains(FairScheduler.class.getName());
    }
{code}
that can be called from {{testSubmitWithLauncherQueue()}}:
{code}
...
        if (isFairSchedulerUsed(conf)) {
            assertEquals("root.test", queue);
        }
        else {
            assertEquals("test", queue);
        }
...
{code}



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