sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szabolcs Vasas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-3304) Increase the maximum memory for JUnit tests
Date Sun, 25 Mar 2018 11:13:00 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-3304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Szabolcs Vasas updated SQOOP-3304:
----------------------------------
    Attachment: SQOOP-3304.patch

> Increase the maximum memory for JUnit tests
> -------------------------------------------
>
>                 Key: SQOOP-3304
>                 URL: https://issues.apache.org/jira/browse/SQOOP-3304
>             Project: Sqoop
>          Issue Type: Sub-task
>    Affects Versions: 1.5.0
>            Reporter: Szabolcs Vasas
>            Assignee: Szabolcs Vasas
>            Priority: Major
>         Attachments: SQOOP-3304.patch
>
>
> TestKerberosAuthenticator committed in SQOOP-3300 fails in our Jenkins build with an
OutOfMemoryError:
> {code:java}
> [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
> {code}
> As this test case worked fine in our local environments increasing the maximum memory
available for JUnit tests should solve the problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message