Martijn Visser created FLINK-41156:
--------------------------------------

             Summary: Upgrade Testcontainers to 1.21.4 on the JDBC connector 
v4.1 and v3.4 branches to support Docker 29
                 Key: FLINK-41156
                 URL: https://issues.apache.org/jira/browse/FLINK-41156
             Project: Flink
          Issue Type: Bug
          Components: Connectors / JDBC
    Affects Versions: jdbc-4.1.1, jdbc-3.5.0
            Reporter: Martijn Visser
            Assignee: Martijn Visser


The v4.1 and v3.4 branches still use Testcontainers 1.20.1, which talks to 
Docker with API version 1.32. GitHub moved {{ubuntu-latest}} to Ubuntu 26.04, 
which ships Docker 29.4.2, and Docker 29 no longer accepts that API version. 
Every container test on these branches now fails before a container starts.

The weekly run of 2026-10-25 is red on all three release cells, while main 
(Testcontainers 2.0.5) passed on JDK 11, 17 and 21:
https://github.com/apache/flink-connector-jdbc/actions/runs/40147110871/job/121030695663
 (Flink 2.3.0, v4.1)
https://github.com/apache/flink-connector-jdbc/actions/runs/40147110871/job/121030695759
 (Flink 2.2.1, v4.1)
https://github.com/apache/flink-connector-jdbc/actions/runs/40147110871/job/121030695507
 (Flink 1.20.5, v3.4)

{code}
[ERROR] 
org.apache.flink.connector.jdbc.postgres.database.PostgresCatalogFactoryTest  
Time elapsed: 0.792 s  <<< ERROR!
java.lang.IllegalStateException: Could not find a valid Docker environment. 
Please see logs and check configuration
        at 
org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:268)
        at 
org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:194)
        at 
org.testcontainers.containers.GenericContainer.start(GenericContainer.java:329)
{code}

The weekly of 2026-10-18 still ran on Ubuntu 24.04 with Docker 28.0.4 and 
passed on all cells. main moved to Testcontainers 1.21.4 in 02c7c530, which 
applies cleanly to both branches. FLINK-41071 did the same for the Cassandra 
connector.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to