Bug #37752 | Table crash for ROW_FORMAT=DYNAMIC on MyISAM | ||
---|---|---|---|
Submitted: | 30 Jun 2008 21:36 | Modified: | 14 Jul 2008 11:22 |
Reporter: | Hans-Peter Klett | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S1 (Critical) |
Version: | 5.0.51b/5.1/6.0 | OS: | Windows (Linux) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | myisam, ROW_FORMAT, table crash |
[30 Jun 2008 21:36]
Hans-Peter Klett
[30 Jun 2008 21:47]
Hans-Peter Klett
Upon further investigation, two other tables suffered the same fate today. This is quite disconcerting. Our client serves over 200,000 customers, and it is peak season. We are crossing our fingers in hopes that this will not happen on our live setup.
[30 Jun 2008 21:54]
Hans-Peter Klett
Forgot to mention that it's 64-bit. I would guess that's a more important variable than it being server 2008.
[1 Jul 2008 2:01]
MySQL Verification Team
This is repeatable on Win32 too. I will test on Linux. mysql 5.0 > SELECT * FROM permission_template_permissions; ERROR 1194 (HY000): Table 'permission_template_permissions' is marked as crashed and should be repaired mysql 5.0 > show variables like "%version%"; +-------------------------+---------------------+ | Variable_name | Value | +-------------------------+---------------------+ | protocol_version | 10 | | version | 5.0.64-nt-log | | version_comment | Source distribution | | version_compile_machine | ia32 | | version_compile_os | Win32 | +-------------------------+---------------------+ 5 rows in set (0.03 sec) mysql 6.0 > SELECT * FROM permission_template_permissions; ERROR 1194 (HY000): Table 'permission_template_permissions' is marked as crashed and should be repaired mysql 6.0 > check table permission_template_permissions; +--------------------------------------+-------+----------+---------------------------------+ | Table | Op | Msg_type | Msg_text | +--------------------------------------+-------+----------+---------------------------------+ | test.permission_template_permissions | check | error | Found too long record (10) at 0 | | test.permission_template_permissions | check | error | Corrupt | +--------------------------------------+-------+----------+---------------------------------+ 2 rows in set (0.45 sec) mysql 6.0 > repair table permission_template_permissions; +--------------------------------------+--------+----------+------------------------------------------+ | Table | Op | Msg_type | Msg_text | +--------------------------------------+--------+----------+------------------------------------------+ | test.permission_template_permissions | repair | info | Wrong bytesec: 3- 0- 10 at 0; Skipped | | test.permission_template_permissions | repair | warning | Number of rows changed from 167 to 0 | | test.permission_template_permissions | repair | status | OK | +--------------------------------------+--------+----------+------------------------------------------+ 3 rows in set (0.03 sec) mysql 6.0 > SELECT * FROM permission_template_permissions; Empty set (0.00 sec) mysql 6.0 >
[1 Jul 2008 12:30]
MySQL Verification Team
Thank you for the bug report. Verified on Linux also. mysql> SELECT * FROM permission_template_permissions; ERROR 1194 (HY000): Table 'permission_template_permissions' is marked as crashed and should be repaired mysql> show variables like "%version%"; +-------------------------+---------------------+ | Variable_name | Value | +-------------------------+---------------------+ | protocol_version | 10 | | version | 5.1.28-debug | | version_comment | Source distribution | | version_compile_machine | x86_64 | | version_compile_os | unknown-linux-gnu | +-------------------------+---------------------+ 5 rows in set (0.00 sec) mysql>
[1 Jul 2008 12:37]
MySQL Verification Team
a bit shorter testcase ---------------------- drop table if exists `t1`; create table `t1` (`a` int) checksum=1 engine=myisam row_format=dynamic; insert into t1 values(1); check table t1;
[14 Jul 2008 11:22]
Ramil Kalimullin
See bug #37310: 'on update CURRENT_TIMESTAMP' option crashes the table.