lhotari opened a new pull request, #19324:
URL: https://github.com/apache/pulsar/pull/19324
### Motivation
Sometimes compilation fails with an error like this:
```
java.lang.StackOverflowError
at lombok.core.AST.fieldsOf(AST.java:234)
at lombok.javac.JavacAST.drill(JavacAST.java:506)
at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:476)
at lombok.javac.JavacAST.buildTree(JavacAST.java:285)
at lombok.javac.JavacAST.buildTree(JavacAST.java:1)
at lombok.core.AST.buildWithField0(AST.java:394)
at lombok.core.AST.buildWithField(AST.java:292)
at lombok.javac.JavacAST.drill(JavacAST.java:506)
at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:476)
at lombok.javac.JavacAST.buildTree(JavacAST.java:285)
at lombok.javac.JavacAST.buildTree(JavacAST.java:1)
at lombok.core.AST.buildWithField0(AST.java:394)
at lombok.core.AST.buildWithField(AST.java:292)
at lombok.javac.JavacAST.drill(JavacAST.java:506)
at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:476)
at lombok.javac.JavacAST.buildTree(JavacAST.java:285)
at lombok.javac.JavacAST.buildTree(JavacAST.java:1)
at lombok.core.AST.buildWithField0(AST.java:394)
at lombok.core.AST.buildWithField(AST.java:292)
at lombok.javac.JavacAST.drill(JavacAST.java:506)
at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:476)
at lombok.javac.JavacAST.buildTree(JavacAST.java:285)
at lombok.javac.JavacAST.buildTree(JavacAST.java:1)
at lombok.core.AST.buildWithField0(AST.java:394)
at lombok.core.AST.buildWithField(AST.java:292)
```
This problem was addressed for the CI in #18602 by increasing the thread
stack size.
However, a similar problem occurs when compiling Pulsar locally.
### Modifications
Add a [`.mvn/jvm.config`
file](https://maven.apache.org/configure.html#mvn-jvm-config-file) with
`-Xss1500k`.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. Please attach the local
preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR
description, or else your PR might not get merged. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]