Description
It has been noticed that many JDK-21 builds hang randomly on Jenkins when running org.apache.cxf.systest.jaxrs.JAXRSMultipartTest test cases, one example below:
[INFO] Apache CXF Transport System Tests JMS .............. SUCCESS [01:16 min]
[INFO] Apache CXF JAX-RS System Tests ..................... FAILURE [ 01:10 h]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:19 h
[INFO] Finished at: 2023-11-16T00:36:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project cxf-systests-jaxrs:
[ERROR]
[ERROR] Please refer to /home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh c cd '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs' && '/usr/local/asfpackages/java/adoptium-jdk-21.0.1+12/bin/java' '-ea' 'add-opens' 'java.base/java.lang=ALL-UNNAMED' 'add-opens' 'java.base/java.net=ALL-UNNAMED' '-add-opens' 'java.base/sun.net.www.protocol.https=ALL-UNNAMED' '-Dnone=' '-jar' '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs/target/surefire/surefirebooter-20231115232616520_768.jar' '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs/target/surefire' '2023-11-15T22-20-39_709-jvmRun1' 'surefire-20231115232616520_766tmp' 'surefire_170-20231115232616520_767tmp'
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 143
[ERROR] Crashed tests:
[ERROR] org.apache.cxf.systest.jaxrs.JAXRSMultipartTest
[ERROR] 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 '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs' && '/usr/local/asfpackages/java/adoptium-jdk-21.0.1+12/bin/java' '-ea' 'add-opens' 'java.base/java.lang=ALL-UNNAMED' 'add-opens' 'java.base/java.net=ALL-UNNAMED' '-add-opens' 'java.base/sun.net.www.protocol.https=ALL-UNNAMED' '-Dnone=' '-jar' '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs/target/surefire/surefirebooter-20231115232616520_768.jar' '/home/jenkins/jenkins-agent/workspace/CXF_pipeline_main/systests/jaxrs/target/surefire' '2023-11-15T22-20-39_709-jvmRun1' 'surefire-20231115232616520_766tmp' 'surefire_170-20231115232616520_767tmp'
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 143
[ERROR] Crashed tests:
[ERROR] org.apache.cxf.systest.jaxrs.JAXRSMultipartTest
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:643)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:285)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:250)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1240)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1089)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:905)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
[ERROR] at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:906)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:283)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:206)
[ERROR] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:283)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:226)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:407)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:348)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.