No, Java 21 is not the recommended JDK version for Apache Pulsar branch-4.0. For Pulsar 3.0.x and 4.0.x, Java 17 is supported and recommended, but Java 21 is only recommended for 3.3.x and newer. Java 21 support and recommendation start with Pulsar 3.3.x and above, while 4.0.x still primarily targets Java 17, though newer Docker images may include Java 21 for convenience. See the discussion in
this issue and
this pull request.
Would you like more detail on Java version compatibility for other Pulsar branches?
Sources:
-
https://github.com/apache/pulsar/issues/24816
-
https://github.com/apache/pulsar/pull/22875 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.