Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
-
Debian 8. java-8-openjdk-amd64.
Description
After wait_timeout expires, server sends TCP RST to all TCP connections. Then JDBC tries to create another TCP connection, which seems successful, but for some reason JDBC closes this new TCP connection immediately.
I use Maven artifact
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>2.4.0</version>
Then MariaDbPoolDataSource.getConnection() throws
java.sql.SQLNonTransientConnectionException: No connection available within the specified time (option 'connectTimeout': 30,000 ms)
What is strange - When I step through in debugger, then it works.
To reproduce:
1.
Set up wait_timeout=60 in my.cnf .
2.
Run attached TcpRstMain2.java .
3.
See attached Wireshark.
Thank you.
Attachments
Issue Links
- relates to
-
CONJ-848 Pool correction for java 7 connection branch
- Closed