Bug #64814 | Inconsistent error when concurrently dropping table and trigger | ||
---|---|---|---|
Submitted: | 30 Mar 2012 12:26 | Modified: | 31 Mar 2012 9:17 |
Reporter: | Pedro Fonseca | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S3 (Non-critical) |
Version: | 5.5.19 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[30 Mar 2012 12:26]
Pedro Fonseca
[31 Mar 2012 9:17]
Sveta Smirnova
Thank you for the report. Verified as described. To repeat: 1. Modify 5.5 sources as follow: [sveta@delly mysql-5.5]$ bzr diff === modified file 'sql/sql_handler.cc' --- sql/sql_handler.cc 2011-06-30 15:46:53 +0000 +++ sql/sql_handler.cc 2012-03-31 09:08:36 +0000 @@ -862,6 +862,7 @@ my_hash_delete(&thd->handler_tables_hash, (uchar*) hash_tables); hash_tables= next; } +sleep(2); /* Mark MDL_context as no longer breaking protocol if we have 2. Run following MTR test: create table t1 (x1col char); create trigger tx1 before insert on t1 for each row set new.x1col = 'x'; --send drop table t1; sleep 1; connect(addconroot, localhost, root,,); connection addconroot; drop trigger tx1;
[31 Mar 2012 9:27]
Sveta Smirnova
This is not MyISAM issue: inconsistency happens before any storage engine involved. Error can be easily repeated if use InnoDB storage engine.
[31 Mar 2012 9:29]
Sveta Smirnova
I think this can be considered as a bug only in those versions which have metadata locking (5.5 and up).