You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2025/01/23 08:43:12 UTC

[PR] [improve][ci] Increase Maven max heap size to 2048M in CI [pulsar]

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][ci] Increase Maven max heap size to 2048M and tune GCLockerRetryAllocationCount [pulsar]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #23883:
URL: https://github.com/apache/pulsar/pull/23883#issuecomment-2609562006

   ## [Codecov](https://app.codecov.io/gh/apache/pulsar/pull/23883?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 74.22%. Comparing base [(`bbc6224`)](https://app.codecov.io/gh/apache/pulsar/commit/bbc62245c5ddba1de4b1e7cee4ab49334bc36277?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`712c36f`)](https://app.codecov.io/gh/apache/pulsar/commit/712c36f28bcd8c22f04e2955ac931b6c637f63b4?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 862 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   [![Impacted file tree graph](https://app.codecov.io/gh/apache/pulsar/pull/23883/graphs/tree.svg?width=650&height=150&src=pr&token=acYqCpsK9J&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/pulsar/pull/23883?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #23883      +/-   ##
   ============================================
   + Coverage     73.57%   74.22%   +0.64%     
   + Complexity    32624    31857     -767     
   ============================================
     Files          1877     1853      -24     
     Lines        139502   143619    +4117     
     Branches      15299    16311    +1012     
   ============================================
   + Hits         102638   106598    +3960     
   + Misses        28908    28660     -248     
   - Partials       7956     8361     +405     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/pulsar/pull/23883/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [inttests](https://app.codecov.io/gh/apache/pulsar/pull/23883/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `26.93% <ø> (+2.35%)` | :arrow_up: |
   | [systests](https://app.codecov.io/gh/apache/pulsar/pull/23883/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `23.16% <ø> (-1.17%)` | :arrow_down: |
   | [unittests](https://app.codecov.io/gh/apache/pulsar/pull/23883/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `73.74% <ø> (+0.90%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   [see 1032 files with indirect coverage changes](https://app.codecov.io/gh/apache/pulsar/pull/23883/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   </details>


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][ci] Increase Maven max heap size to 2048M and tune GCLockerRetryAllocationCount [pulsar]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #23883:
URL: https://github.com/apache/pulsar/pull/23883


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org