Bug #17812 | Previous lock table for write causes "stray" lock although table is recreated | ||
---|---|---|---|
Submitted: | 1 Mar 2006 1:59 | Modified: | 9 Mar 2006 2:48 |
Reporter: | Jonathan Miller | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 5.1.8 | OS: | Linux (Linux 32 Bit OS) |
Assigned to: | Tomas Ulin | CPU Architecture: | Any |
[1 Mar 2006 1:59]
Jonathan Miller
[8 Mar 2006 9:19]
Tomas Ulin
it is not binlog related as the same occurs with the mysql-test-run option --skip-master-binlog Also this is most probably in 5.0 as well simplified test case: connect (con1root,localhost,root,,); connect (con2root,localhost,root,,); # # this creating, locking, and dropping causes a subsequent hang on the delete below # waiting for table t2 # the locking in the "other" connection is relevant, as without it there is no problem # connection con1root; create table t2 (id2 int); connection con2root; lock tables t2 write; unlock tables; connection con1root; drop table t2; connection con1root; create table t1 (id int, j int); insert into t1 values (2, 2); create table t2 (id int); connection con2root; lock tables t2 read; connection con1root; # here we get a hang although be shouldn't delete t1 from t1, t2 where t1.id = t2.id; connection con2root; unlock tables; connection con1root; drop table t1, t2;
[8 Mar 2006 12:51]
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/3579
[8 Mar 2006 15:29]
Tomas Ulin
pushed to 5.1.8 (verified that this is not in 5.0)
[9 Mar 2006 2:48]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented bugfix in 5.1.8 changelog. Closed.