Bug #99260 | statement.setQueryTimeout,creates a database connection and does not close | ||
---|---|---|---|
Submitted: | 15 Apr 2020 2:16 | Modified: | 5 Nov 2022 2:06 |
Reporter: | beitian wang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 8.0.13-8.0.18, 8.0.19 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[15 Apr 2020 2:16]
beitian wang
[17 Apr 2020 6:25]
MySQL Verification Team
Hello Beitian, Thank you for the report. regards, Umesh
[11 Dec 2021 16:49]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.28 changelog: "After calling Statement.setQueryTimeout(), when a query timeout was reached, a connection to the server was established to terminate the query, but the connection remained open afterward. With this fix, the new connection is closed after the query termination. "
[28 Aug 2024 9:20]
chong zhang
How to avoid connection leakage without upgrading JDBC 8.0.28 ? I found that configuring the queryTimeoutKilleConnection=true parameter for JDBC 8.0.25 URL can avoid issues,do you also agree ? 88
[14 Nov 2024 11:47]
Filipe Silva
Yes, that should work too. Just mind that the main connection gets closed as well.