Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3081

testSubmitWithLauncherQueue fails when FairScheduler is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.0.0
    • 5.0.0b1
    • tests
    • None

    Description

      Running TestJavaActionExecutor fails with fair scheduler

      Failed tests: testSubmitWithLauncherQueue(org.apache.oozie.action.hadoop.TestJavaActionExecutor): 
       expected:<[]test> but was:<[root.]test>
      

      Reason: FairScheduler adds a "root." prefix to the queue name in org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueueManager.ensureRootPrefix()

      A potential way to fix the test case:

      • we can add a new function
            private boolean isFairSchedulerUsed(Configuration conf) {
                return conf.get("yarn.resourcemanager.scheduler.class").contains(FairScheduler.class.getName());
            }
        

        that can be called from testSubmitWithLauncherQueue():

        ...
                if (isFairSchedulerUsed(conf)) {
                    assertEquals("root.test", queue);
                }
                else {
                    assertEquals("test", queue);
                }
        ...
        

      Attachments

        1. OOZIE-3081-002.patch
          2 kB
          Attila Sasvári
        2. OOZIE-3081-001.patch
          2 kB
          Attila Sasvári

        Activity

          People

            asasvari Attila Sasvári
            asasvari Attila Sasvári
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: