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

Misc test failures against JDK8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 4.2.0
    • Component/s: tests
    • Labels:
      None

      Description

      Using the below procedure, I built Oozie with Java 7 and then built and ran the tests with Java 8:

      • set java 7
      • mvn clean test -DskipTests
      • find . -name test-classes | grep target/test-classes | xargs rm -rf // Delete test classes
      • set java 8
      • mvn test -DtargetJavaVersion=1.8

      There were 3 test failures:

      • org.apache.oozie.coord.TestHCatELFunctions.testDataOutPartitions
        • it was expecting 'region=euro,datastamp=20130230' but now got 'datastamp=20130230,region=euro'
      • org.apache.oozie.util.TestELConstantsFunctions.testAppendAll
        • Java 8 changes the behavior of the String.split method to not include a leading empty String if the pattern matches the front of the String. To remain backwards compatible, the solution here was to emulate this behavior so the appendAll method behaves the same as it did with Java 6 and 7.
      • org.apache.oozie.workflow.lite.TestLiteWorkflowAppParser.testForkJoinMismatch
        • it was checking a parameterized error message where the order of the parameters switched

        Attachments

        1. OOZIE-2043.patch
          3 kB
          Robert Kanter
        2. OOZIE-2043.patch
          4 kB
          Robert Kanter

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: