[
https://issues.apache.org/jira/browse/FLINK-32342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732919#comment-17732919
]
Martijn Visser commented on FLINK-32342:
----------------------------------------
Mitigated via:
apache/flink-connector-jdbc@main: e6f70722d09036893c18f76b124e7e045b359e68
apache/[email protected]: bba2d9e2cf03e227c3e4461324389e8c4a307fb9
> SQL Server container behaves unexpected while testing with several surefire
> forks
> ---------------------------------------------------------------------------------
>
> Key: FLINK-32342
> URL: https://issues.apache.org/jira/browse/FLINK-32342
> Project: Flink
> Issue Type: Technical Debt
> Components: Connectors / JDBC
> Affects Versions: jdbc-3.1.0
> Reporter: Sergey Nuyanzin
> Priority: Major
>
> By default it inherits {{flink.forkCountITCase == 2}} from Flink.
> it looks sqlserver container has issues with starting in several surefire
> forks...
> Based on
> [https://github.com/MartijnVisser/flink-connector-jdbc/actions/runs/5265349453/jobs/9517854060]
> sql server container is hanging while start
> {noformat}
> "main" #1 prio=5 os_prio=0 cpu=1965.96ms elapsed=2568.93s
> tid=0x00007f84a0027000 nid=0x1c82 runnable [0x00007f84a41fc000]
> java.lang.Thread.State: RUNNABLE
> at java.net.SocketInputStream.socketRead0([email protected]/Native
> Method)
> at
> java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
> at
> java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
> at
> java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
> at
> com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.readInternal(IOBuffer.java:1192)
> - locked <0x00000000930e38f0> (a
> com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream)
> at
> com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.read(IOBuffer.java:1179)
> at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:2307)
> - locked <0x00000000930e38f0> (a
> com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream)
> at
> com.microsoft.sqlserver.jdbc.SQLServerConnection.Prelogin(SQLServerConnection.java:3391)
> at
> com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3200)
> 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:253)
> at
> org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:218)
> at
> org.testcontainers.containers.JdbcDatabaseContainer.waitUntilContainerStarted(JdbcDatabaseContainer.java:158)
> at
> org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:490)
> at
> org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
> at
> org.testcontainers.containers.GenericContainer$$Lambda$532/0x00000001003d1440.call(Unknown
> Source)
> at
> org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
> at
> org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
> at
> org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
> at
> org.apache.flink.connector.jdbc.testutils.databases.sqlserver.SqlServerDatabase$SqlServerContainer.start(SqlServerDatabase.java:81)
> at
> org.apache.flink.connector.jdbc.testutils.databases.sqlserver.SqlServerDatabase.startDatabase(SqlServerDatabase.java:52)
> at
> org.apache.flink.connector.jdbc.testutils.DatabaseExtension.beforeAll(DatabaseExtension.java:122)
> ...
> {noformat}
> as a WA setting {{flink.forkCountITCase == 1}} solves the issue
> However need to find a better way to allow running tests with several forks
--
This message was sent by Atlassian Jira
(v8.20.10#820010)