Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4716

TestHsWebServicesJobsQuery.testJobsQueryStateInvalid fails with jdk7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3, 2.0.2-alpha, 3.0.0-alpha1
    • 2.1.0-beta, 0.23.10
    • jobhistoryserver

    Description

      Using jdk7 TestHsWebServicesJobsQuery.testJobsQueryStateInvalid fails.

      It looks like the string changed from "const class" to "constant" in jdk7.

      Tests run: 25, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.713 sec <<< FAILURE!
      testJobsQueryStateInvalid(org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery) Time elapsed: 0.371 sec <<< FAILURE!
      java.lang.AssertionError: exception message doesn't match, got: No enum constant org.apache.hadoop.mapreduce.v2.api.records.JobState.InvalidState expected: No enum const class org.apache.hadoop.mapreduce.v2.api.records.JobState.InvalidState
      at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43)
      at org.apache.hadoop.yarn.webapp.WebServicesTestUtils.checkStringMatch(WebServicesTestUtils.java:77)
      at org.apache.hadoop.mapreduce.v2.hs.webapp.TestHsWebServicesJobsQuery.testJobsQueryStateInvalid(TestHsWebServicesJobsQuery.java:286)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Attachments

        1. MAPREDUCE-4716.patch
          1 kB
          Thomas Graves

        Issue Links

          Activity

            People

              tgraves Thomas Graves
              tgraves Thomas Graves
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: