Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky Test] Tests fail because of VM crash #1698

Closed
3 tasks done
rickyma opened this issue May 11, 2024 · 3 comments · Fixed by #1726 or #1739
Closed
3 tasks done

[Flaky Test] Tests fail because of VM crash #1698

rickyma opened this issue May 11, 2024 · 3 comments · Fixed by #1726 or #1739

Comments

@rickyma
Copy link
Contributor

rickyma commented May 11, 2024

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the flaky test

Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project rss-integration-common-test: There are test failures.
Error:
Error: Please refer to /home/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common/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/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common && /usr/lib/jvm/temurin-8-jdk-amd64/jre/bin/java -ea -Xmx3g -jar /home/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common/target/surefire/surefirebooter7429227444381436354.jar /home/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common/target/surefire 2024-05-11T16-14-55_901-jvmRun1 surefire6058224363993333182tmp surefire_07324544499115299035tmp
Error: Error occurred in starting fork, check output in log
Error: Process Exit Code: 1
Error: Crashed tests:
Error: org.apache.uniffle.test.FetchClientConfTest
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/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common && /usr/lib/jvm/temurin-8-jdk-amd64/jre/bin/java -ea -Xmx3g -jar /home/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common/target/surefire/surefirebooter7429227444381436354.jar /home/runner/work/incubator-uniffle/incubator-uniffle/integration-test/common/target/surefire 2024-05-11T16-14-55_901-jvmRun1 surefire6058224363993333182tmp surefire_07324544499115299035tmp
Error: Error occurred in starting fork, check output in log
Error: Process Exit Code: 1
Error: Crashed tests:
Error: org.apache.uniffle.test.FetchClientConfTest
Error: at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
Error: at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
Error: at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
Error: at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
Error: at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
Error: at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error: at java.lang.reflect.Method.invoke(Method.java:498)
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: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error: at java.lang.reflect.Method.invoke(Method.java:498)
Error: at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:52)
Error: at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:161)
Error: at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:73)
Error: -> [Help 1]

Actions URL

https://github.com/apache/incubator-uniffle/actions/runs/9044920297/job/24854106226?pr=1696

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@rickyma
Copy link
Contributor Author

rickyma commented May 11, 2024

Maybe we should increase the memory? Current memory is 3g: <argLine>-ea -Xmx3g</argLine>.

WDYT? @zuston @jerqi

@rickyma
Copy link
Contributor Author

rickyma commented May 19, 2024

ping @zuston @jerqi

@zuston
Copy link
Member

zuston commented May 20, 2024

Maybe we should increase the memory? Current memory is 3g: <argLine>-ea -Xmx3g</argLine>.

WDYT? @zuston @jerqi

Ok for me. We can take a try

rickyma added a commit to rickyma/incubator-uniffle that referenced this issue May 20, 2024
zuston pushed a commit that referenced this issue May 22, 2024
…#1726)

### What changes were proposed in this pull request?

Increase tests running memory for better stability.

### Why are the changes needed?

Fix: #1698.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Unnecessary.
rickyma added a commit to rickyma/incubator-uniffle that referenced this issue May 23, 2024
rickyma added a commit to rickyma/incubator-uniffle that referenced this issue May 23, 2024
rickyma added a commit to rickyma/incubator-uniffle that referenced this issue May 23, 2024
rickyma added a commit to rickyma/incubator-uniffle that referenced this issue May 23, 2024
zuston pushed a commit that referenced this issue May 28, 2024
… tests (#1739)

### What changes were proposed in this pull request?

We adjust the memory arguments refer to Spark's [pom.xml](https://github.com/apache/spark/blob/master/pom.xml):
> -ea -Xmx4g -Xss4m -XX:MaxMetaspaceSize=2g -XX:ReservedCodeCacheSize=${CodeCacheSize} ${extraJavaTestArgs}

and [make-distribution.sh](https://github.com/apache/spark/blob/master/dev/make-distribution.sh):
> export MAVEN_OPTS="${MAVEN_OPTS:--Xss128m -Xmx4g -XX:ReservedCodeCacheSize=128m}"

This is more reasonable.

### Why are the changes needed?

Fix: #1698.
After #1726, I found that the issue may still exist.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Unnecessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants