Bug #12049 | MySQL hangs | ||
---|---|---|---|
Submitted: | 20 Jul 2005 8:38 | Modified: | 11 May 2008 6:35 |
Reporter: | NOT_FOUND NOT_FOUND | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.1.12, 5.0.9 | OS: | IBM AIX (AIX 5.2) |
Assigned to: | CPU Architecture: | Any |
[20 Jul 2005 8:38]
NOT_FOUND NOT_FOUND
[25 Jul 2005 17:25]
J Jorgenson
Found similar situation: MYSQL v5.0.3 (Solaris): CREATE TABLE myTable( id INT NOT NULL, value DECIMAL(9,2), PRIMARY KEY id ); INSERT INTO ZmyTable(id, value) VALUES (1, 6.5243) ON DUPLICATE KEY UPDATE value=VALUES(value); THIS CAUSES the DB Server to start having record locking, along with other tables appear to start locking. Problem Researched: INSERT INTO myTable(id, value) VALUES (1, 6.5243) returns an 'Field Truncated' error message, but still inserts the value. When you add the ON DUPLICATE KEY, the SQL hangs the DB engine. -- J Jorgenson --
[29 Aug 2005 21:38]
J Jorgenson
A collegue found the cause to my issue... There was a VIEW 'on-top' of the table that was being updated. Once view had been executed, and appears to take some time (select ?) for it to release the read lock on the table. Using Algorithm=TEMPTABLE on the 'create view' sql actually caused the view to take longer to produce output. The update lock issue would 'go-away' when the view was NOT executing/created -- jason --
[24 Sep 2005 16:13]
Valeriy Kravchuk
I think, you should limit the number of concurrently working threads (your application server connections) to 18, the number of processors. Your description, similar behaviour for MyISAN and InnoDB storage engines, and the show innodb status results shows it is a contention issue. It is partly because all you sessions use the same data concurrently. You may try to split the load, using several tables for inserts and MERGE table for selects, in case of MyISAM. Please, retry with no more that 18 concurrent threads and, possibly, with newer versions of MySQL (4.1.14 and 5.0.12-beta) and inform about the results.
[24 Sep 2005 16:25]
Vadim Tkachenko
in 5.0.12 we introduced new option innodb_commit_concurrency, as innodb_thread_concurrency does not protects all structures. Please try at first innodb_commit_concurrency = 1,2,3,4,5 then 10,20,30... 60.
[24 Oct 2005 23: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".
[11 Apr 2008 6:35]
Valeriy Kravchuk
If you still have a chance, please, try to repeat with a newer version, 5.0.51a, and inform about the results.
[11 May 2008 23: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".