Bug #10822 | Server hangs or crash with DELETE FROM table WHERE EXISTS(...) | ||
---|---|---|---|
Submitted: | 24 May 2005 11:32 | Modified: | 4 Aug 2005 14:03 |
Reporter: | Manfred Wiedemeier | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 4.1.12/4.1.14 BK | OS: | Windows (win xp sp2/Linux) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[24 May 2005 11:32]
Manfred Wiedemeier
[24 May 2005 13:33]
MySQL Verification Team
Yesy please provide the database. You can upload it at: ftp://ftp.mysql.com/pub/mysql/upload/ into a zip file and its name making reference to this bug report number. Thanks in advance.
[25 May 2005 6:35]
Manfred Wiedemeier
Could not upload the database, so i attached it.
[13 Jun 2005 15:26]
Bill Duffy
I am experiencing a similar problem with a query like this: DELETE FROM test_P_Cookie WHERE ViewID IN ( SELECT ViewID FROM test_x_RM_4508_48875 ) test_x_RM_4508_48875 contains 180139 rows. test_P_Cookie contains 22,957,702 rows. MySQL appears to hang when running this query - no data is ever deleted as far as I can tell. There does not appear to be any iowait problem and CPU is about 50 % in use if top is to be believed. Table structures: CREATE TABLE `test_x_RM_4508_48875` ( `ViewID` int(11) NOT NULL default '0', `VisitID` int(11) NOT NULL default '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin; CREATE TABLE `test_P_Cookie` ( `ViewID` int(11) NOT NULL default '0', `P_CookieID` int(11) NOT NULL default '0', UNIQUE KEY `test_P_Cookie1` (`ViewID`,`P_CookieID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin; Tested in MySQL 4.1.8 and 4.1.12 Cannot attach a file to the bug - please contact me to get a dump of the database. Thanks.
[25 Jun 2005 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[15 Jul 2005 5:24]
Aleksey Kishkin
reopened as wrongly closed
[16 Jul 2005 8:09]
Vasily Kishkin
Sorry...but I can't see attached database. Could you please send the database to my e-mail ?
[18 Jul 2005 8:03]
Manfred Wiedemeier
How can i attach my database? My zip-file is 3MB. But I send the file again to your upload server: ftp://ftp.mysql.com/pub/mysql/upload/. The filename is: bug_10822.zip.
[18 Jul 2005 9:09]
Vasily Kishkin
Thanks for database. Tested on Win 2003 Sp4, MySQL server 4.1.13
[4 Aug 2005 14:03]
Evgeny Potemkin
Tested on linux 2.6.11-gentoo-r7 x86_64 AMD, Windows XP SP2
[16 Aug 2005 15:42]
Bill Duffy
I can duplicate this. Would you like the test case I mentioned in my earlier post? I cannot attach it.