Skip to content

[repo] JVM Compatibility: the openjdk JDK 11 leg fails, Maven on OpenJDK 11.0.2 cannot download from Maven Central #3487

Backlog

Description

@polyglotAI-bot

Description

The openjdk JDK 11 leg of the weekly workflow JVM Compatibility (.github/workflows/jvm-compatibility.yml) is red on main. The other 13 legs pass in the same runs, also temurin JDK 11 and amazon JDK 11, and the tests of the leg pass. Only the two steps after "Activate legacy example JVM" fail, because Maven on that JDK cannot download artifacts from Maven Central:

  • "Compile examples": 2026-11-11, 2026-11-25, 2026-12-02.
  • "Run client example smoke test": 6 runs from 2026-09-16 to 2026-11-04. This step keeps the Maven output in a variable, so the log shows only exit code 1.

For this leg, setup-java installs OpenJDK 11.0.2+9, a build from January 2019 (Resolved latest version as 11.0.2+9). Since 2026-09-16 the leg failed in each of the 11 scheduled runs where it ran: 9 times in these two steps, and 2 times in "Test all modules" together with most other legs (another cause).

Steps to reproduce

  1. Download and extract OpenJDK 11.0.2: https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz.
  2. Let Maven 3.9.15 on this JDK download one dependency of examples/client into an empty local repository:
    export JAVA_HOME=$PWD/jdk-11.0.2 PATH=$PWD/jdk-11.0.2/bin:$PATH
    mvn -B -ntp -Dmaven.repo.local=/tmp/m2-empty \
      org.apache.maven.plugins:maven-dependency-plugin:3.8.1:get \
      -Dartifact=com.google.protobuf:protobuf-java-util:4.33.2
    
  3. It fails in 3 of 3 runs. The same command passes with MAVEN_OPTS=-Djdk.tls.client.protocols=TLSv1.2, with -Daether.connector.basic.threads=1, on Corretto 11.0.33, and on Temurin 17.0.21. The plugin of the smoke test (-Dartifact=org.codehaus.mojo:exec-maven-plugin:3.5.0) fails in the same way on 11.0.2, and passes with TLS 1.2.

Error Log or Exception StackTrace

CI, "Compile examples", 2026-12-02:

[ERROR] Failed to execute goal on project java-client-examples: Could not resolve dependencies for project com.clickhouse:java-client-examples:jar:1.0.0
[ERROR] dependency: com.google.protobuf:protobuf-java-util:jar:4.33.2 (compile)
[ERROR] 	Could not transfer artifact com.google.protobuf:protobuf-java-util:jar:4.33.2 from/to ossrh (https://central.sonatype.com/repository/maven-snapshots/): peer not authenticated
[ERROR] 	Could not transfer artifact com.google.protobuf:protobuf-java-util:jar:4.33.2 from/to central (https://repo.maven.apache.org/maven2): peer not authenticated

Local, step 2:

[ERROR] 	Could not transfer artifact org.apache.maven.reporting:maven-reporting-api:jar:4.0.0 from/to central (https://repo.maven.apache.org/maven2): No PSK available. Unable to resume.
[ERROR] 	Could not transfer artifact org.apache.maven.doxia:doxia-site-model:jar:2.0.0 from/to central (https://repo.maven.apache.org/maven2): peer not authenticated

Expected Behaviour

The leg compiles and runs the examples on JDK 11, as temurin JDK 11 and amazon JDK 11 do in the same runs.

Root cause

OpenJDK 11.0.2 has the TLS 1.3 defect JDK-8213202, "Possible race condition in TLS 1.3 session resumption" (fixed in 11.0.3): parallel TLS 1.3 connections that resume one session fail. Maven downloads with 5 parallel connections by default. .github/workflows/jvm-compatibility.yml:138 selects oracle-openjdk for the vendor openjdk, and Oracle's archive has no OpenJDK 11 build after 11.0.2, so setup-java cannot install a fixed build.

The fix changes only .github/workflows/jvm-compatibility.yml, and AGENTS.md asks for a maintainer's approval of a workflow change. The decision: keep the 11.0.2 leg and limit Maven to TLS 1.2 in its example steps, or exclude openjdk 11 as openjdk 8 is excluded.

Polyglot AI can open a fix PR if a maintainer assigns this issue to @polyglotAI-bot.

Code Example

Not applicable: the command in step 2 is the reproduction.

Configuration

Client Configuration

Not applicable (a CI build of the examples).

Environment

  • Cloud
  • Client version: main at 27d63e9 (0.12.0-rc1-SNAPSHOT)
  • Language version: OpenJDK 11.0.2+9 (Oracle archive build), Maven 3.9.15
  • OS: GitHub runner ubuntu-latest; local reproduction on Linux (Docker)

ClickHouse Server

  • ClickHouse Server version: not used by the failing downloads
  • ClickHouse Server non-default settings, if any: none
  • CREATE TABLE statements for tables involved: none
  • Sample data for all these tables: none

Classification: impact: none · area: Docs & project (JVM compatibility CI)


Found by automated analysis (Polyglot AI) while reading the CI runs of main. Verified with a local run against Maven Central.

Activity

  1. added
    tests
    on Dec 2, 2026
  2. added
    ci
    and removed
    tests
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions