Bug #70256 | MySQL gets stuck on shutdown if it can't create the required thread | ||
---|---|---|---|
Submitted: | 6 Sep 2013 7:16 | Modified: | 6 Sep 2013 11:07 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Connection Handling | Severity: | S3 (Non-critical) |
Version: | 5.5.23 | OS: | Linux (CentOS 5.x) |
Assigned to: | CPU Architecture: | Any |
[6 Sep 2013 7:16]
Simon Mudd
[6 Sep 2013 7:17]
Simon Mudd
I believe that this issue is present on all versions of mysqld where there's a shutdown thread (so currently 5.5, 5.6 and 5.7.1 [dev version]).
[6 Sep 2013 7:25]
MySQL Verification Team
And another way would be to pre-create the shutdown thread and any memory that a shutdown might need.
[6 Sep 2013 10:58]
Simon Mudd
Pre-creating a single thread for this unusual issue and having it stay idle seems like rather a waste. Some of the servers I manage have a MySQL uptime of over a year so this seems like an unneeded waste of resources, even if these extra resources are minimal. The situation, under normal circumstances should not happen. Perhaps a simple assertion to check the thread is created correctly is sufficient. That failure would trigger the immediate stop anyway, which is really what I am hoping is achieved.