[ https://issues.apache.org/jira/browse/ORC-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673734#comment-16673734 ]
ASF GitHub Bot commented on ORC-432: ------------------------------------ omalley closed pull request #335: ORC-432. Work around openjdk8 bug that causes failures in surefire plugin URL: https://github.com/apache/orc/pull/335 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docker/run-all.sh b/docker/run-all.sh index c781e9bcfb..2dee97cf3a 100755 --- a/docker/run-all.sh +++ b/docker/run-all.sh @@ -39,10 +39,6 @@ for os in `cat os-list.txt`; do centos7|debian8|ubuntu14) OPTS="-DSNAPPY_HOME=/usr/local" ;; - debian9) - # there is a bug in debian 9 that causes surefire to fail - OPTS="-DBUILD_JAVA=OFF" - ;; *) OPTS="" ;; diff --git a/java/pom.xml b/java/pom.xml index 204bc79a25..0f930b1039 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -156,6 +156,7 @@ <TZ>US/Pacific</TZ> <LANG>en_US.UTF-8</LANG> </environmentVariables> + <useSystemClassLoader>false</useSystemClassLoader> <failIfNoTests>false</failIfNoTests> <systemPropertyVariables> <test.tmp.dir>${test.tmp.dir}</test.tmp.dir> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > openjdk 8 has a bug that prevents surefire from working > ------------------------------------------------------- > > Key: ORC-432 > URL: https://issues.apache.org/jira/browse/ORC-432 > Project: ORC > Issue Type: Bug > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Priority: Major > > It looks like the problem is > https://bugs.openjdk.java.net/browse/JDK-8030046. It looks like: > {code:bash} > [ERROR] Caused by: > org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM > terminated without properly saying goodbye. VM crash or System.exit called? > [ERROR] Command was /bin/sh -c cd /root/orc/java/shims && > /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx2048m -jar > /root/orc/java/shims/target/surefire/surefirebooter4015168140687556977.jar > /root/orc/java/shims/target/surefire 2018-11-02T12-32-24_319-jvmRun1 > surefire8218006047690391850tmp surefire_04160000529152079754tmp > {code} > The surefire-reports/*.dumpstream looks like: > {code:bash} > Error: Could not find or load main class > org.apache.maven.surefire.booter.ForkedBooter > {code} > and we can work around the problem by changing the surefire configuration: > {code:bash} > + <useSystemClassLoader>false</useSystemClassLoader> > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)