diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 1f6b88cd0f09..a91734edf343 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -3,7 +3,7 @@ description: "Verify checked out commits and setup Java" inputs: java-version: description: "Java version to setup" - default: 21 + default: 22 cache: description: "Cache Maven repo (true/false/restore)" default: restore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index faae46f71ed6..058895c2b77d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,8 +56,7 @@ jobs: fail-fast: false matrix: include: - - { java-version: 21, cache: 'true', cleanup-node: 'false' } - - { java-version: 22, cache: 'restore', cleanup-node: 'true' } + - { java-version: 22, cache: 'true', cleanup-node: 'false' } timeout-minutes: 45 steps: - uses: actions/checkout@v4 @@ -519,7 +518,7 @@ jobs: with: cache: restore cleanup-node: ${{ format('{0}', matrix.modules == 'plugin/trino-singlestore') }} - java-version: ${{ matrix.jdk != '' && matrix.jdk || '21' }} + java-version: ${{ matrix.jdk != '' && matrix.jdk || '22' }} - name: Maven Install run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" diff --git a/core/trino-server-rpm/src/main/rpm/preinstall b/core/trino-server-rpm/src/main/rpm/preinstall index dbbf425b2c6c..90e9e1f80c7c 100644 --- a/core/trino-server-rpm/src/main/rpm/preinstall +++ b/core/trino-server-rpm/src/main/rpm/preinstall @@ -35,9 +35,13 @@ if ! check_if_correct_java_version "$JAVA_HOME"; then java_found=false for candidate in \ /usr/lib/jvm/java-21-* \ + /usr/lib/jvm/java-22-* \ /usr/lib/jvm/zulu-21 \ + /usr/lib/jvm/zulu-22 \ /usr/lib/jvm/temurin-21 \ /usr/lib/jvm/temurin-21-* \ + /usr/lib/jvm/temurin-22 \ + /usr/lib/jvm/temurin-22-* \ /usr/lib/jvm/default-java \ /usr/java/default \ / \ diff --git a/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java b/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java index 08bf0b8f9416..48a16849a413 100644 --- a/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java +++ b/core/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java @@ -76,6 +76,9 @@ public void testInstallUninstall() // Release names as in the https://api.adoptium.net/q/swagger-ui/#/Release%20Info/getReleaseNames testInstall("jdk-21.0.2+13", "/usr/lib/jvm/temurin-21", "21"); testUninstall("jdk-21.0.2+13", "/usr/lib/jvm/temurin-21", "21"); + + testInstall("jdk-22+36", "/usr/lib/jvm/temurin-22", "22"); + testUninstall("jdk-22+36", "/usr/lib/jvm/temurin-22", "22"); } private void testInstall(String temurinReleaseName, String javaHome, String expectedJavaVersion) diff --git a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/EnvironmentOptions.java b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/EnvironmentOptions.java index d12048697c15..0514f785a189 100644 --- a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/EnvironmentOptions.java +++ b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/EnvironmentOptions.java @@ -60,7 +60,7 @@ public final class EnvironmentOptions public String launcherBin; @Option(names = "--trino-jdk-version", paramLabel = "", description = "JDK to use for running Trino " + DEFAULT_VALUE) - public String jdkProvider = "temurin21"; + public String jdkProvider = "temurin22"; @Option(names = "--jdk-tmp-download-path", paramLabel = "", defaultValue = "${env:PTL_TMP_DOWNLOAD_PATH:-${sys:java.io.tmpdir}/ptl-tmp-download}", description = "Path to use to download JDK distributions " + DEFAULT_VALUE) @Nullable