Bug #48792 | crash when 'delete from .. order by' from a large table | ||
---|---|---|---|
Submitted: | 16 Nov 2009 8:10 | Modified: | 1 Dec 2009 12:23 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: InnoDB Plugin storage engine | Severity: | S1 (Critical) |
Version: | 5.1.40 | OS: | Any (xp,linux) |
Assigned to: | Sveta Smirnova | CPU Architecture: | Any |
[16 Nov 2009 8:10]
Shane Bester
[17 Nov 2009 2:25]
MySQL Verification Team
i confirmed that the plugin innodb crashed, but the normal builtin innodb didn't.
[20 Nov 2009 15:33]
MySQL Verification Team
Now I got a very odd situation trying to repeat this again. The alter table errors out with a duplicate key error, but alas there is not a duplicate key! mysql> alter table t1 add primary key(so_id); ERROR 1062 (23000): Duplicate entry '0' for key 'PRIMARY' mysql> mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 7000000 | +----------+ 1 row in set (26.40 sec) mysql> select count(distinct so_id) from t1; +-----------------------+ | count(distinct so_id) | +-----------------------+ | 7000000 | +-----------------------+ 1 row in set (31.40 sec) mysql> select count(*) from t1 where so_id=0; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (19.44 sec) mysql> select min(so_id),max(so_id) from t1; +------------+------------+ | min(so_id) | max(so_id) | +------------+------------+ | 4 | 28000000 | +------------+------------+ 1 row in set (19.63 sec) So there is something extremely broken with alter table in the plugin.
[20 Nov 2009 15:55]
MySQL Verification Team
mysql> alter table t1 add unique key(so_id); ERROR 1062 (23000): Duplicate entry '0' for key 'so_id' mysql> select so_id from t1 group by so_id having count(so_id)>1; Empty set (4 min 36.68 sec) So, I fail to see why the alter table isn't working now. I guess that might be part of the bug to start with ?
[23 Nov 2009 7:18]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior. Which exact package do you use? How do you compile the server?
[1 Dec 2009 12:23]
MySQL Verification Team
was not repeatable in 5.1.41 which contains 1.0.5 of the plugin.
[1 Dec 2009 12:41]
Marko Mäkelä
This looks like a duplicate of Bug #48935, which was fixed in InnoDB Plugin 1.0.5.