Bug #118842 | Transactions get stuck in stage/sql/waiting for handler commit until mysqld restart (MySQL 8.4.3), heavy concurrent DML | ||
---|---|---|---|
Submitted: | 14 Aug 8:50 | Modified: | 19 Aug 0:05 |
Reporter: | kayukaran Parameswaran | Email Updates: | |
Status: | Need Feedback | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 8.4.3 | OS: | Red Hat (9.4) |
Assigned to: | MySQL Verification Team | CPU Architecture: | x86 |
Tags: | 8.4.3, binlog group commit, commit stall, innodb, replication, waiting for handler commit |
[14 Aug 8:50]
kayukaran Parameswaran
[14 Aug 9:02]
kayukaran Parameswaran
We could not reproduce this issue on non-production environment
[15 Aug 3:08]
kayukaran Parameswaran
Can we get the update on this what is way forward on this ?
[18 Aug 10:01]
MySQL Verification Team
Hello, Could you please clarify whether you are running this on bare metal or within a virtual machine (VM)? Without the ability to reproduce the issue, our options for assistance are limited. Based on the information provided, this appears to be a scaling or configuration issue rather than a bug. In such cases, MySQL Support would be the most appropriate channel for further assistance. Thank you for using MySQL.
[18 Aug 10:20]
kayukaran Parameswaran
Hello, Thank you for your feedback. This MySQL instance is running inside an OpenStack VM (not bare metal). We do not have any evidence that this issue is related to scaling or a configuration mismatch. The stall occurs only occasionally, and once it happens, all active sessions remain stuck in waiting for handler commit until we restart mysqld. After the restart, it works without any changes to configuration or environment. This behavior makes us confirms that the server enters a hung state internally rather than it being purely a configuration issue. Could this be related to the issue described in MySQL Bug #117407? Thanks , Regards,
[18 Aug 10:31]
MySQL Verification Team
Hi, There are some communication issues solved in 8.4.6 so you should upgrade to latest version and test. Some of these "stuck" issues are happening only on VM and are hard to reproduce as they are often triggered by bad quality of the network on cloud providers. Please upgrade to 8.4.6 and test if that will solve the problem.
[18 Aug 11:03]
kayukaran Parameswaran
Hello, Thank you for your immediate feedback. We experienced MySQL getting stuck while flushing the binlog file to disk. During that time, replication continued and MySQL clients were able to connect to the server, but they could not perform DELETE/UPDATE/INSERT operations. Only SELECT queries worked. Given this behavior, we are unsure how it could be related to network quality on the cloud provider. We also verified disk I/O at the time and it appeared normal. Unfortunately, we could not determine the exact root cause of the hang. Thanks, Regards,
[19 Aug 0:05]
MySQL Verification Team
Hi, As number of these type of issues are visible only on VM and never on bare metal it is only a guess. Without ability to reliably reproduce I can't say anything for sure. Number of bugfixes exist that could solve this so please upgrade and let us know if you reproduce it with latest MySQL Thanks