Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9324

TestSchedulingRequestContainerAllocation(Async) fails with junit-4.11

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0, 3.2.1
    • Component/s: capacity scheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestSchedulingRequestContainerAllocation(Async) fails with junit-4.11 in branch-3.2 with below exception while using array return type of @Parameters method of the Parameterized runner. This is supported from junit-4.12 and works in branch-3.3. branch-3.3 has junit-4.12 from HADOOP-14775

      https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md#parameterized-tests

      [ERROR] initializationError(org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestSchedulingRequestContainerAllocation)  Time elapsed: 0.008 s  <<< ERROR!
      java.lang.Exception: org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestSchedulingRequestContainerAllocation.placementConstarintHandlers() must return an Iterable of arrays.
      	at org.junit.runners.Parameterized.parametersMethodReturnedWrongType(Parameterized.java:343)
      	at org.junit.runners.Parameterized.allParameters(Parameterized.java:296)
      	at org.junit.runners.Parameterized.<init>(Parameterized.java:282)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
      	at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      	at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:362)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      

        Attachments

        1. YARN-9324-branch-3.2.002.patch
          4 kB
          Prabhu Joseph
        2. YARN-9324-branch-3.2.001.patch
          4 kB
          Prabhu Joseph
        3. YARN-9324-001.patch
          4 kB
          Prabhu Joseph

          Activity

            People

            • Assignee:
              Prabhu Joseph Prabhu Joseph
              Reporter:
              Prabhu Joseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: