lhotari opened a new pull request, #22927:
URL: https://github.com/apache/pulsar/pull/22927

   ### Motivation
   
   * Netty's optimized direct ByteBuffer support requires passing certain 
parameters to the JVM.
   * The legacy solution `IS_JAVA_8` should be replaced with the 
JAVA_MAJOR_VERSION detection solution so that parameters could be correctly set 
for newer Java version.
   * Pulsar server side code doesn't support JVMs before 17 version. The script 
should exit when an older JVM is detected.
   
   ### Modifications
   
   - refactor scripts to use JAVA_MAJOR_VERSION
   - consistently pass required JVM arguments so that Netty's optimized direct 
ByteBuffer gets used.
   
   ### 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]

Reply via email to