[fix][ci] Increase thread stack size to 1500k for Maven JVM to prevent StackOverflowError in compilation - #18602
Merged
lhotari merged 1 commit intoNov 24, 2022
Conversation
…t StackOverflowError in compilation - For some reason compilation can fail with StackOverflowError with the default settings - increase thread stack size to 1500k (with -Xss1500k) Example: Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project pulsar-broker-common: Fatal error compiling: java.lang.StackOverflowError -> [Help 1]
Member
Author
|
It looks like the problem reproduced in https://github.com/apache/pulsar/actions/runs/3539671520/jobs/5942046881#step:10:3748 |
Member
Author
|
Log from the failed build |
Member
Author
|
Attempting to fix the issue first by upgrading Lombok in #18604 |
4 tasks
Member
Author
|
the issue in Pulsar might match projectlombok/lombok#1118 |
lhotari
marked this pull request as ready for review
November 24, 2022 11:51
Member
Author
|
It looks like the only mitigation for the Lombok issue is to increase stack size. |
Member
Author
|
/pulsarbot rerun-failure-checks |
Codecov Report
@@ Coverage Diff @@
## master #18602 +/- ##
============================================
+ Coverage 47.72% 48.51% +0.79%
- Complexity 9330 9476 +146
============================================
Files 618 618
Lines 58568 58609 +41
Branches 6093 6097 +4
============================================
+ Hits 27951 28436 +485
+ Misses 27589 27134 -455
- Partials 3028 3039 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
|
nicoloboschi
approved these changes
Nov 24, 2022
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Dec 9, 2022
…t StackOverflowError in compilation (apache#18602)
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
…t StackOverflowError in compilation (apache#18602)
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Example failure:
I've created this PR as a draft so that we can use this if we end up needing to address this issue and it reproduces again.
Modifications
-Xss1500ktoMAVEN_OPTSDocumentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: lhotari#104