Bug #68165 | mysql_upgrade can be blocked dropping PERFORMANCE_SCHEMA if a user is in the db. | ||
---|---|---|---|
Submitted: | 24 Jan 2013 13:28 | Modified: | 11 Feb 2013 9:40 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
Version: | 5.6.9-rc | OS: | Any |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
[24 Jan 2013 13:28]
Simon Mudd
[11 Feb 2013 9:39]
Marc ALFF
The mysql_upgrade process is expected to run "alone" against a server. This however, is not enforced, so that a client can connect to the server during the upgrade, and interfere. A known case where a client can make the upgrade wait for a lock is: - The client uses AUTOCOMMIT=OFF - The client performs a select against a system table (performance_schema.* or mysql.*) - The client never COMMIT or ROLLBACK transactions. The server behaves as expected in this case. The fix is to: - either prevent any connection to the server during an upgrade, - or at least do not create open ended transactions, that can be a bug in the application itself.