Leonard Xu created FLINK-37305: ---------------------------------- Summary: JDBC Connector CI failed due to network issue Key: FLINK-37305 URL: https://issues.apache.org/jira/browse/FLINK-37305 Project: Flink Issue Type: Bug Components: Connectors / JDBC Affects Versions: jdbc-3.1.2 Reporter: Leonard Xu Fix For: jdbc-3.3.0
https://github.com/apache/flink-connector-jdbc/actions/runs/13192808286/job/36828738137 {code:java} WARNING: ConnectionID:1 ClientConnectionId: ebda2785-c8c8-468f-8144-a23626291121 Prelogin error: host localhost port 32838 Unexpected end of prelogin response after 0 bytes read Error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 241.187 s <<< FAILURE! - in org.apache.flink.connector.jdbc.sqlserver.table.SqlServerDynamicTableSourceITCase Error: org.apache.flink.connector.jdbc.sqlserver.table.SqlServerDynamicTableSourceITCase Time elapsed: 241.187 s <<< ERROR! org.testcontainers.containers.ContainerLaunchException: Container startup failed for image mcr.microsoft.com/azure-sql-edge:latest at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:359) at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330) at org.apache.flink.connector.jdbc.sqlserver.testutils.SqlServerDatabase$SqlServerContainer.start(SqlServerDatabase.java:81) at org.apache.flink.connector.jdbc.testutils.resources.DockerResource.start(DockerResource.java:27) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.lambda$startResource$1(DatabaseExtension.java:180) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.getResource(DatabaseExtension.java:116) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.beforeAll(DatabaseExtension.java:125) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) Suppressed: org.apache.flink.util.FlinkRuntimeException: Container is stopped. at org.apache.flink.connector.jdbc.sqlserver.testutils.SqlServerDatabase.getMetadata(SqlServerDatabase.java:44) at org.apache.flink.connector.jdbc.sqlserver.testutils.SqlServerDatabase.getMetadataDB(SqlServerDatabase.java:54) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.lambda$getManagedTables$0(DatabaseExtension.java:77) at java.base/java.util.Optional.ifPresent(Optional.java:183) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.getManagedTables(DatabaseExtension.java:75) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.getManagedTables(DatabaseExtension.java:66) at org.apache.flink.connector.jdbc.testutils.DatabaseExtension.afterAll(DatabaseExtension.java:148) ... 1 more Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88) at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:344) ... 7 more Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:563) at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:354) at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81) ... 8 more Caused by: java.lang.IllegalStateException: Wait strategy failed. Container exited with code 1 at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:533) ... 10 more Caused by: java.lang.IllegalStateException: Container is started, but cannot be accessed by (JDBC URL: jdbc:sqlserver://localhost:32838;encrypt=false), please check container logs at org.testcontainers.containers.JdbcDatabaseContainer.waitUntilContainerStarted(JdbcDatabaseContainer.java:209) at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:500) ... 10 more Caused by: java.sql.SQLException: Could not create new connection at org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:295) at org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:251) at org.testcontainers.containers.JdbcDatabaseContainer.waitUntilContainerStarted(JdbcDatabaseContainer.java:191) ... 11 more Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 32838 has failed. Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.". at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:237) at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:288) at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2720) at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:761) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3180) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:2833) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2671) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1640) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:936) at org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:286) ... 13 more {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)