Bug #69892 | innodb stats interferes with innodb force recovery and drop/create tables | ||
---|---|---|---|
Submitted: | 1 Aug 2013 8:23 | Modified: | 7 Oct 2013 13:25 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.6.13 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[1 Aug 2013 8:23]
Shane Bester
[7 Oct 2013 13:25]
Bugs System
Noted in 5.6.15, 5.7.3 changelogs: Due to a regression in MySQL 5.6, creating or dropping tables with "innodb_force_recovery" set to "3" ("SRV_FORCE_NO_TRX_UNDO") would fail. Additionally, this bug fix includes a code modification that sets "InnoDB" to read-only when "innodb_force_recovery" is set to a value greater than "3" ("SRV_FORCE_NO_TRX_UNDO"). Also updated innodb_force_recovery option information to mention that InnoDB is placed in read-only state for "innodb_force_recovery" options 4,5, and 6. The change should appear soon, with the next published documentation build. http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
[4 Dec 2013 11:46]
Laurynas Biveinis
5.6$ bzr log -r 5486 ------------------------------------------------------------ revno: 5486 committer: Annamalai Gurusami <annamalai.gurusami@oracle.com> branch nick: mysql-5.6 timestamp: Thu 2013-10-03 15:17:17 +0530 message: Bug #17253499 INNODB STATS INTERFERES WITH INNODB FORCE RECOVERY AND DROP/CREATE TABLES Problem: During force recovery (SRV_FORCE_NO_TRX_UNDO), create and drop table is not working. Solution: The semantics of the force recovery level SRV_FORCE_NO_TRX_UNDO has been misinterpreted. The force recovery level SRV_FORCE_NO_TRX_UNDO means that rollback of recovered transactions must not be done. This should not prevent other transactions being assigned a rollback segment. So while assigning rollback segments, do not check the level of innodb_force_recovery. Also, when the innodb_force_recovery is greater than SRV_FORCE_NO_TRX_UNDO we now make InnoDB to become read only. rb#3473 approved by Marko