Bug #109864 | Connector/J 8.0.32 hangs on MySQL 5.5 with prepared statements | ||
---|---|---|---|
Submitted: | 31 Jan 2023 17:23 | Modified: | 27 Mar 2023 8:21 |
Reporter: | Björn Voigt (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 8.0.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[31 Jan 2023 17:23]
Björn Voigt
[1 Feb 2023 3:28]
Zhe Huang
Hi Björn Voigt, you can go back to Bug #106252 to track the new update.
[1 Feb 2023 4:45]
MySQL Verification Team
Hello Björn, Thank you for the report and test case. regards, Umesh
[13 Feb 2023 17:04]
Filipe Silva
Related to Bug#107577.
[14 Mar 2023 19:18]
Skylar Sutton
Confirming we encountered this issue on MySQL 5.7.32, using driver com.mysql:mysql-connector-j:8.0.32, preparing a "DELETE FROM ...." statement. Debugging indicates it is the "if (checkEOF && isEOFPacket())" line that results in a hung connection. I would advocate for raising the Severity on this from S3 (non-critical) to something higher. A statement that returns zero columns (DELETE, INSERT, ALTER, CREATE, ...) is a common action and this would be a showstopping bug on many production systems.
[14 Mar 2023 20:23]
Björn Voigt
Skylar Sutton suggested to increase severity in https://bugs.mysql.com/bug.php?id=109864#c530709
[21 Mar 2023 15:19]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.33 changelog: "When connecting to MySQL Server 5.7 and earlier with Connector/J 8.0.32, Connector/J sometimes hung after the prepare phase of a server-side prepared statement."
[27 Mar 2023 8:21]
Björn Voigt
It would be nice to have the fix for this bug as open source, so we can test it. https://github.com/mysql/mysql-connector-j currently does not show the fix.