Bug #53757 | assert in mysql_truncate_by_delete | ||
---|---|---|---|
Submitted: | 18 May 2010 17:07 | Modified: | 12 Aug 2010 19:49 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | mysql-next-mr, mysql-trunk-bugfixing | OS: | Any |
Assigned to: | Jon Olav Hauglid | CPU Architecture: | Any |
[18 May 2010 17:07]
Matthias Leich
[18 May 2010 17:33]
Matthias Leich
grammars + config + protocol
Attachment: 53757.tgz (application/x-compressed-tar, text), 36.38 KiB.
[4 Jun 2010 8:20]
Jon Olav Hauglid
Verified using RQG on mysql-next-mr-bugfixing.
[4 Jun 2010 9:39]
Jon Olav Hauglid
Repeatable in mysql-trunk-bugfixing by adding the following sync point: === modified file 'sql/sql_base.cc' --- sql/sql_base.cc 2010-06-01 13:49:31 +0000 +++ sql/sql_base.cc 2010-06-04 09:27:19 +0000 @@ -4197,6 +4197,7 @@ open_and_process_table(THD *thd, LEX *le bool error= FALSE; bool safe_to_ignore_table= FALSE; DBUG_ENTER("open_and_process_table"); + DEBUG_SYNC(thd, "open_and_process_table"); And then executing the following MTR test case: --source include/have_debug_sync.inc --source include/have_innodb.inc CREATE TABLE t1(a INT) Engine=InnoDB; CREATE TABLE t2(id INT); INSERT INTO t1 VALUES (1), (2); FLUSH TABLE t1; connect (con1, localhost, root); INSERT INTO t2 VALUES(connection_id()); SET DEBUG_SYNC= "open_and_process_table SIGNAL opening WAIT_FOR killed"; --send TRUNCATE t1 connection default; SET DEBUG_SYNC= "now WAIT_FOR opening"; SELECT ((@id := id) - id) FROM t2; KILL @id; SET DEBUG_SYNC= "now SIGNAL killed"; DROP TABLE t1;
[4 Jun 2010 11:49]
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/110232 3039 Jon Olav Hauglid 2010-06-04 Bug #53757 assert in mysql_truncate_by_delete The assert was triggered if a connection executing TRUNCATE on a InnoDB table was killed during open_tables. This bug was fixed in the scope of Bug #45643 "InnoDB does not support replication of TRUNCATE TABLE". This patch adds test coverage to innodb_mysql_sync.test.
[24 Jun 2010 17:28]
Konstantin Osipov
The test case patch was approved on the commits@ list.
[25 Jun 2010 7:07]
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/112160 3062 Jon Olav Hauglid 2010-06-25 Bug #53757 assert in mysql_truncate_by_delete The assert was triggered if a connection executing TRUNCATE on a InnoDB table was killed during open_tables. This bug was fixed in the scope of Bug #45643 "InnoDB does not support replication of TRUNCATE TABLE". This patch adds test coverage to innodb_mysql_sync.test.
[25 Jun 2010 7:07]
Jon Olav Hauglid
Pushed to mysql-trunk-runtime (5.5.6).
[3 Aug 2010 7:07]
Jon Olav Hauglid
The bug mentioned in the patch notes should have been bug#42643 and not bug#45643
[4 Aug 2010 7:51]
Bugs System
Pushed into mysql-trunk 5.5.6-m3 (revid:alik@sun.com-20100731131027-1n61gseejyxsqk5d) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 8:10]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804080001-bny5271e65xo34ig) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 8:26]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804081533-c1d3rbipo9e8rt1s) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 9:05]
Bugs System
Pushed into mysql-next-mr (revid:alik@ibmvm-20100804081630-ntapn8bf9pko9vj3) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (pib:20)
[12 Aug 2010 19:49]
Paul DuBois
Noted in 5.5.6 changelog. If a session executing TRUNCATE TABLE on an InnoDB table was killed during open_tables(), an assertion could be raised.