Bug #48106 | Concurrent DELETE / INSERT throw lock wait timeout | ||
---|---|---|---|
Submitted: | 16 Oct 2009 7:50 | Modified: | 16 Nov 2009 8:15 |
Reporter: | Holger Hees | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.67 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[16 Oct 2009 7:50]
Holger Hees
[16 Oct 2009 7:52]
Holger Hees
TRANSACTION ISOLATION LEVEL is READ COMMITTED
[16 Oct 2009 8:15]
Valeriy Kravchuk
I think manual, http://dev.mysql.com/doc/refman/5.0/en/innodb-locks-set.html, properly explain this situation (if you take into account ON DELETE CASCADE, that is, the fact that corresponding row in test2 is also deleted): "DELETE FROM ... WHERE ... sets an exclusive next-key lock on every record the search encounters." Plus (from http://dev.mysql.com/doc/refman/5.0/en/innodb-record-level-locks.html): "Gap locking can be disabled explicitly. This occurs if you change the transaction isolation level to READ COMMITTED or enable the innodb_locks_unsafe_for_binlog system variable. Under these circumstances, gap locking is disabled for searches and index scans and is used only for foreign-key constraint checking and duplicate-key checking."
[17 Nov 2009 0: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".