Bump Java baseline to 25 on master#8893
Open
reiabreu wants to merge 1 commit into
Open
Conversation
Move master off Java 21 and onto Java 25 (LTS) as the exclusive build and test JDK. The main motivation is JEP 491, which landed in Java 24 and is carried into the 25 LTS: virtual threads no longer pin their carrier when blocking inside a synchronized block, removing a key constraint on adopting VTs in Storm's I/O-bound paths. Changes: - pom.xml: javaVersion 21 → 25 - maven.yaml: build job uses JDK 25; test matrix drops 21, keeps only 25 - nightlies.yaml, snapshots.yaml, update-license-files.yml: JDK 21 → 25 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
javaVersioninpom.xmlfrom 21 to 25maven.yamlCI build job to use JDK 25 and drops Java 21 from the test matrix (now runs exclusively on 25)nightlies.yaml,snapshots.yaml, andupdate-license-files.ymlto use JDK 25Motivation
Java 25 is the next LTS after 21. The key driver is JEP 491 ("Synchronize Virtual Threads without Pinning"), delivered in Java 24 and carried into the 25 LTS. Before this fix, virtual threads blocked inside
synchronizedblocks would pin their carrier thread — under load this could exhaust the carrier pool. On Java 25 the VT unmounts cleanly while waiting, which removes the main blocker for adopting virtual threads in Storm's I/O-bound paths (Netty transport, bolt external calls, ZK/Nimbus heartbeat paths) without first rewriting everysynchronizedblock toReentrantLock.This was discussed on the dev@ list as part of the 3.0.0 planning thread.
Test plan
🤖 Generated with Claude Code