This is an automated email from the ASF dual-hosted git repository.
yqm pushed a commit to branch 35.0.0
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/35.0.0 by this push:
new ce4eba21237 Support jdk 21 officially (#18624)
ce4eba21237 is described below
commit ce4eba212375c4423de166ecad6e26fe3d3fe133
Author: Lucas Capistrant <[email protected]>
AuthorDate: Mon Oct 13 17:34:19 2025 -0500
Support jdk 21 officially (#18624)
* try zulu 21.0.8
* add java21 to supported runtimes in java docs
* update the verify-java script to reflect no 11 support and 21 support
---
.github/workflows/ci.yml | 2 +-
.github/workflows/static-checks.yml | 3 +--
.github/workflows/unit-and-integration-tests-unified.yml | 3 +--
docs/operations/java.md | 2 +-
examples/bin/verify-java | 6 +++---
5 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eddaec98182..f7f6c9d3c2a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -78,7 +78,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- jdk: [ "21.0.4" ]
+ jdk: [ "21" ]
pattern: [ "C*", "H*,U*,V*", "N*,Q*,S*", "B*,O*,R*", "G*,J*,K*",
"F*,L*,M*", "A*,D*,I*,X*,Y*,Z*", "E*,P*,T*,W*"]
uses: ./.github/workflows/worker.yml
with:
diff --git a/.github/workflows/static-checks.yml
b/.github/workflows/static-checks.yml
index d92baff3976..9c8fffbe4d7 100644
--- a/.github/workflows/static-checks.yml
+++ b/.github/workflows/static-checks.yml
@@ -41,8 +41,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- # Use JDK 21.0.4 to work around
https://github.com/apache/druid/issues/17429
- java: [ '17', '21.0.4' ]
+ java: [ '17', '21' ]
runs-on: ubuntu-latest
steps:
- name: checkout branch
diff --git a/.github/workflows/unit-and-integration-tests-unified.yml
b/.github/workflows/unit-and-integration-tests-unified.yml
index fa5defa5be8..12f84e08113 100644
--- a/.github/workflows/unit-and-integration-tests-unified.yml
+++ b/.github/workflows/unit-and-integration-tests-unified.yml
@@ -56,8 +56,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- # Use JDK 21.0.4 to work around
https://github.com/apache/druid/issues/17429
- jdk: [ '17', '21.0.4' ]
+ jdk: [ '17', '21' ]
runs-on: ubuntu-latest
steps:
- name: Checkout branch
diff --git a/docs/operations/java.md b/docs/operations/java.md
index 765122e107f..a035e4e239c 100644
--- a/docs/operations/java.md
+++ b/docs/operations/java.md
@@ -27,7 +27,7 @@ a Java runtime for Druid.
## Selecting a Java runtime
-Druid officially supports Java 17.
+Druid officially supports Java 17 and 21.
The project team recommends using an OpenJDK-based Java distribution. There
are many free and actively-supported
distributions available, including
diff --git a/examples/bin/verify-java b/examples/bin/verify-java
index 33003dc4475..0ffab8b96c1 100755
--- a/examples/bin/verify-java
+++ b/examples/bin/verify-java
@@ -28,14 +28,14 @@ sub fail_check {
: "No Java runtime was detected on your system.";
print STDERR <<"EOT";
-Druid requires Java 11 or 17. $current_version_text
+Druid requires Java 17 or 21. $current_version_text
If you believe this check is in error, or you want to proceed with a
potentially
unsupported Java runtime, you can skip this check using an environment
variable:
export DRUID_SKIP_JAVA_CHECK=1
-Otherwise, install Java 11 or 17 in one of the following locations.
+Otherwise, install Java 17 or 21 in one of the following locations.
* DRUID_JAVA_HOME
* JAVA_HOME
@@ -68,6 +68,6 @@ if ($?) {
}
# If we know it won't work, die. Otherwise hope for the best.
-if ($java_version =~ /version \"((\d+)\.(\d+).*?)\"/ && $2 != 11 && $2 != 17) {
+if ($java_version =~ /version \"((\d+)\.(\d+).*?)\"/ && $2 != 17 && $2 != 21) {
fail_check($1);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]