lhotari opened a new pull request, #23883: URL: https://github.com/apache/pulsar/pull/23883
### Motivation In CI, "Build Pulsar docker image" fails sporadically: ``` [INFO] Building jar: /home/runner/work/pulsar/pulsar/pulsar-io/kafka-connect-adaptor-nar/target/pulsar-io-kafka-connect-adaptor-4.1.0-SNAPSHOT.nar Warning: [748.365s][warning][gc,alloc] pool-249-thread-4: Retried waiting for GCLocker too often allocating 2500002 words ... Error: Failed to execute goal org.apache.nifi:nifi-nar-maven-plugin:1.5.0:nar (default-nar) on project pulsar-io-kafka-connect-adaptor-nar: Error assembling NAR: Problem creating jar: Execution exception: Java heap space -> [Help 1] Error: Error: To see the full stack trace of the errors, re-run Maven with the -e switch. Error: Re-run Maven using the -X switch to enable full debug logging. Error: Error: For more information about the errors and possible solutions, please read the following articles: Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Error: Error: After correcting the problems, you can resume the build with the command Error: mvn <args> -rf :pulsar-io-kafka-connect-adaptor-nar Error: Process completed with exit code 1. ``` ### Additional Context The NiFi NAR plugin isn't optimal for Pulsar usage since it scans all dependencies for NiFi style documentation. The excessive heap usage problem would most like be resolved by https://github.com/apache/nifi-maven/pull/35 . However, the NiFi NAR plugin version including the change requires Java 21. One possibility would be to use a Maven profile activated when Java 21 is used to built Pulsar to use the newer version with the possibility to skip NiFI style documentation generation. That is out of scope for this PR. ### Modifications - Increase Maven max heap size to 2048M in Pulsar GitHub Actions CI workflows. ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `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]
