[Build/Tests] Make the test JVM exit if OOME occurs - #14509
Conversation
- OOMEs can make the build to take very long to complete. It's better to fail fast in tests when OOMEs occur.
eolivelli
left a comment
There was a problem hiding this comment.
what happens in case of OOM with this flag ?
is surefire reporting the name of the broker test ?
otherwise it will be very hard to understand why CI failed
The OOME does get logged in surefire report files. IIRC, the error code was 3 for the terminated test JVM. This is visible in the console output. |
|
Just created an issue to track the fact that we disabled a test: #14523. |
|
Here's an explanation and a fix for some of the recent OOMEs in tests: #14524 . |
- OOMEs can make the build to take very long to complete. It's better to fail fast in tests when OOMEs occur.
- OOMEs can make the build to take very long to complete. It's better to fail fast in tests when OOMEs occur. (cherry picked from commit 89a36f9)
|
Hi @lhotari The 2.10 branch also occurs the OOM exception, so I cherry-picked this PR into the see: https://github.com/apache/pulsar/actions/runs/4566713860/jobs/8111430173?pr=19971 |
Motivation
OOMEs can make the build to take very long to complete or to hang.
It's better to fail fast in tests when OOMEs occur.
example of a build failure where the build hangs: https://github.com/apache/pulsar/runs/5371747143?check_suite_focus=true
Modifications
XX:+ExitOnOutOfMemoryErrorto test JVM arguments