Bug #46452 | Crash in MDL, HANDLER OPEN + TRUNCATE TABLE | ||
---|---|---|---|
Submitted: | 29 Jul 2009 15:31 | Modified: | 7 Mar 2010 2:04 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.4 | OS: | Any |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[29 Jul 2009 15:31]
Matthias Leich
[29 Jul 2009 15:57]
Matthias Leich
--disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 AS SELECT 1 AS f1; HANDLER t1 OPEN; # Here comes the crash. TRUNCATE t1; # Cleanup DROP TABLE t1; Behavior in mysql-5.1-bugteam July 2009: mysqltest: At line 8: query 'TRUNCATE t1' failed: 1105: MyISAM table 't1' is in use (most likely by a MERGE table). Try FLUSH TABLES. The result from queries just before the failure was: DROP TABLE IF EXISTS t1; CREATE TABLE t1 AS SELECT 1 AS f1; HANDLER t1 OPEN; Warnings from just before the error: Error 1105 MyISAM table 't1' is in use (most likely by a MERGE table). Try FLUSH TABLES.
[29 Jul 2009 18:12]
Davi Arnaut
Very similar (if not a duplicate) of Bug#46224. Different scenarios of the same underlying problem.
[14 Aug 2009 14:36]
Konstantin Osipov
Davi, disagree with your analysis. Bug#46224 needs concurrency. This is a duplicate of Bug#46456.
[19 Aug 2009 14:34]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/81083 2868 Konstantin Osipov 2009-08-19 Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE". Flush open HANDLER tables before TRUNCATE, which is a DDL. @ mysql-test/r/truncate.result Update results (Bug#46452) @ mysql-test/t/truncate.test Add a test case for Bug#46452
[19 Aug 2009 14:34]
Konstantin Osipov
Fixed by the fix for Bug#20667, add a test case.
[19 Aug 2009 14:41]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/81084 2869 Konstantin Osipov 2009-08-19 Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE". Flush open HANDLER tables before TRUNCATE, which is a DDL. @ mysql-test/r/truncate.result Update results (Bug#46452) @ mysql-test/t/truncate.test Add a test case for Bug#46452
[19 Aug 2009 14:41]
Konstantin Osipov
Test case queued into mysql-next-bugfixing
[24 Aug 2009 13:53]
Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090824135126-2rngffvth14a8bpj) (version source revid:kostja@sun.com-20090819143931-2isw4q6hnt8vcn4j) (merge vers: 5.4.4-alpha) (pib:11)
[26 Aug 2009 2:20]
Paul DuBois
Noted in 5.4.4 changelog. HANDLER OPEN followed by TRUNCATE TABLE could cause a server crash.
[9 Dec 2009 9:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/93283 3010 Konstantin Osipov 2009-12-09 ---------------------------------------------------------- revno: 2617.69.33 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-next-46452 timestamp: Wed 2009-08-19 18:39:31 +0400 message: Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE". Flush open HANDLER tables before TRUNCATE, which is a DDL. @ mysql-test/r/truncate.result Update results for Bug#46452. @ mysql-test/t/truncate.test Add a test case for Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE".
[16 Feb 2010 16:47]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100216101445-2ofzkh48aq2e0e8o) (version source revid:kostja@sun.com-20091211154405-c9yhiewr9o5d20rq) (merge vers: 6.0.14-alpha) (pib:16)
[16 Feb 2010 16:56]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100216101208-33qkfwdr0tep3pf2) (version source revid:kostja@sun.com-20091209092936-s105zxtxd3rw2y8m) (pib:16)
[17 Feb 2010 0:51]
Paul DuBois
Noted in 6.0.14 changelog. Setting report to Need Merge pending push of Celosia into release tree.
[6 Mar 2010 10:52]
Bugs System
Pushed into 5.5.3-m3 (revid:alik@sun.com-20100306103849-hha31z2enhh7jwt3) (version source revid:vvaintroub@mysql.com-20100216221947-luyhph0txl2c5tc8) (merge vers: 5.5.99-m3) (pib:16)
[7 Mar 2010 2:04]
Paul DuBois
Noted in 5.5.3 changelog.
[13 Apr 2010 5:01]
Paul DuBois
Correction: Not present in any 5.5.x release. 5.5.3 changelog entry removed.