| Bug #79348 | Corrupt indexes causing assertion errors after upgrading to 5.6.24 | ||
|---|---|---|---|
| Submitted: | 19 Nov 2015 21:07 | Modified: | 31 Aug 2021 0:59 |
| Reporter: | Soumya K | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.6.24 | OS: | Ubuntu (precise) |
| Assigned to: | CPU Architecture: | Any | |
[19 Nov 2015 21:07]
Soumya K
[19 Nov 2015 21:10]
Soumya K
error log
Attachment: triodia.err (application/octet-stream, text), 11.52 KiB.
[19 Nov 2015 21:12]
Soumya K
Could this be related to text/longtext columns?
[20 Nov 2015 17:13]
Soumya K
Per https://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-3.html, mysql_upgrade should fix tables requiring a rebuild by automatically executing a alter table force on them. But that does not seem to be the case. mysql> check table wp_options for upgrade; +---------------------------+-------+----------+--------------------------------------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +---------------------------+-------+----------+--------------------------------------------------------------------------------------------------+ | database_name.wp_options | check | error | Table rebuild required. Please do "ALTER TABLE `wp_options` FORCE" or dump/reload to fix it! | +---------------------------+-------+----------+--------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> alter table wp_options force; Query OK, 0 rows affected (0.02 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> check table wp_options for upgrade; +---------------------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +---------------------------+-------+----------+----------+ | database_name.wp_options | check | status | OK | +---------------------------+-------+----------+----------+ 1 row in set (0.00 sec)
[25 Nov 2015 15:57]
Soumya K
On some of these tables I notice, the auto_increment value jumps to a very large value.
For example, in previous nights backup:
CREATE TABLE `wp_options` (
`option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(64) NOT NULL DEFAULT '',
`option_value` longtext NOT NULL,
`autoload` varchar(20) NOT NULL DEFAULT 'yes',
PRIMARY KEY (`option_id`),
UNIQUE KEY `option_name` (`option_name`)
) ENGINE=InnoDB AUTO_INCREMENT=70902 DEFAULT CHARSET=latin1;
mysql> check table wp_options;
+---------------------------+-------+----------+-----------------------------
------------------------+
| Table | Op | Msg_type | Msg_text
|
+---------------------------+-------+----------+-----------------------------
------------------------+
| wp_options | check | Warning | InnoDB: The B-tree of index
"PRIMARY" is corrupted. |
| wp_options | check | Warning | InnoDB: Index "option_name"
is marked as corrupted |
| wp_options | check | error | Corrupt
|
+---------------------------+-------+----------+-----------------------------
------------------------+
3 rows in set (0.17 sec)
CREATE TABLE `wp_options` (
`option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(64) NOT NULL DEFAULT '',
`option_value` longtext NOT NULL,
`autoload` varchar(20) NOT NULL DEFAULT 'yes',
PRIMARY KEY (`option_id`),
UNIQUE KEY `option_name` (`option_name`)
) ENGINE=InnoDB AUTO_INCREMENT=7953766394816129397 DEFAULT CHARSET=latin1
[25 Nov 2015 15:58]
Soumya K
I've also upgraded to some instances to 5.6.27 but this is still an issue. Can someone please help?
[26 Nov 2015 11:37]
MySQL Verification Team
Thank you for the bug report. Are you able to provide a 5.1 wp_options dump file wit some data inserts?. Thanks.
[4 Dec 2015 19:26]
Soumya K
Do you need data of a wp_options table that had corrupt index? Or just any 5.1 wp_options data?
[4 Dec 2015 19:31]
MySQL Verification Team
Thank you for the feedback. Just the insert data command so I create/populate the table on 5.1 and then upgrade 5.5->5.6. Thanks.
[4 Dec 2015 19:34]
Soumya K
Sure. However, not all wp_options table has this issue (we have thousands of different databases with this table). I don't think you can recreate the issue.
[4 Dec 2015 19:47]
Soumya K
wp_options.sql
Attachment: wp_options (application/octet-stream, text), 444.81 KiB.
[5 Jan 2016 20:37]
Soumya K
Any update on this?
[9 Feb 2016 21:13]
Soumya K
Any update on this?
[10 May 2018 14:21]
MySQL Verification Team
Not repeatable test case was provided.
[31 Aug 2021 0:59]
Soumya K
This turned out to be a problem with our custom kernel.
