Bug #54058 | TRIGGER causes table lock for SELECT or UPDATE query with InnoDB plugin | ||
---|---|---|---|
Submitted: | 28 May 2010 10:05 | Modified: | 12 Dec 2010 0:16 |
Reporter: | Petr Valkoun | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: InnoDB Plugin storage engine | Severity: | S2 (Serious) |
Version: | MySQL 5.1.47 GA | OS: | Linux (OpenSUSE 11.2 x64) |
Assigned to: | CPU Architecture: | Any | |
Tags: | innodb, InnoDB plugin, table lock, trigger |
[28 May 2010 10:05]
Petr Valkoun
[28 May 2010 10:07]
Petr Valkoun
corrected english
[28 May 2010 10:08]
Petr Valkoun
some more english fix
[28 May 2010 15:31]
Valeriy Kravchuk
Thank you for the problem report. Please, send the results of: show innodb status\G at the moment when you see this locking problem.
[28 May 2010 15:57]
Petr Valkoun
This is the status output when executing UPDATE and all tables are locked
Attachment: status.log (application/octet-stream, text), 10.49 KiB.
[28 May 2010 16:03]
Petr Valkoun
Sorry, this is the correct file
Attachment: status2.log (application/octet-stream, text), 62.59 KiB.
[31 May 2010 8:52]
Petr Valkoun
The table locking problem has been solved by removing AUTO_INCREMENT default value in `fresh` table. Is that a feature, or a bug? How is is possible that this caused table locks on both tables? My TRIGGERs are copying updated or inserted rows in `merged` table to `fresh` tables. The AUTO_INCREMENT feature of `sql_runner` column in `fresh` table was never used, because all inserted rows already has some value. Why it caused locks of both tables then? I believe its a BUG.
[31 May 2010 13:08]
Petr Valkoun
So I was wrong, tables are still getting locked by UPDATE command plus now even by SELECT...INTO TEMPORARY TABLE! thats ridiculous, no SELECT should cause table lock in READ_UNCOMMITED right? I will upload another status dump soon, thans for trying to figure it out.
[31 May 2010 13:09]
Petr Valkoun
tables locked because of SELECT statement
Attachment: status4.log (application/octet-stream, text), 59.86 KiB.
[11 Oct 2010 17:17]
Sveta Smirnova
Thank you for the feedback. I can not repeat described behavior using test data. Also I don't see any query like "UPDATE IGNORE merged_data_tb SET recrawl = 'Y' WHERE LEFT(crawlpage,2) IN ('lc','m5','gt','ma','ck');" in the attached status. Please try with current version 5.0.51 and if problem still exists try to create repeatable test case.
[12 Nov 2010 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".
[13 Dec 2010 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".