XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      TestKerberosAuthenticator committed in SQOOP-3300 fails in our Jenkins build with an OutOfMemoryError:

      [junit] Running org.apache.sqoop.authentication.TestKerberosAuthenticator
      [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 50.61 sec
      [junit] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      [junit] at java.util.Arrays.copyOf(Arrays.java:2367)
      [junit] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
      [junit] at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
      [junit] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
      [junit] at java.lang.StringBuffer.append(StringBuffer.java:237)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.endTestSuite(PlainJUnitResultFormatter.java:141)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:731)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:553)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
      [junit] Running org.apache.sqoop.authentication.TestKerberosAuthenticator
      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
      

      As this test case worked fine in our local environments increasing the maximum memory available for JUnit tests should solve the problem.

      Attachments

        1. SQOOP-3304.patch
          0.5 kB
          Vasas Szabolcs

        Issue Links

          Activity

            People

              vasas Vasas Szabolcs
              vasas Vasas Szabolcs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: