Bug #68273 | innodb lock all queries after a while. many threads, many locks | ||
---|---|---|---|
Submitted: | 5 Feb 2013 10:11 | Modified: | 5 Feb 2013 10:38 |
Reporter: | Azat Khuzhin | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.1.60 and 5.5.28 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | innodb, lock, mutex |
[5 Feb 2013 10:11]
Azat Khuzhin
[5 Feb 2013 10:30]
MySQL Verification Team
Why do you believe this is a bug in MySQL ? Queries are all waiting on "innodb_lock_wait_timeout", and you have updates with subqueries with FOR UPDATE. Locks are expected. Additionally, index cannot be used to help you here: AND (@IDS := CONCAT_WS(',', id, @IDS). I'd suggest to rewrite these update queries and check again.
[5 Feb 2013 10:38]
Azat Khuzhin
Thanks for fast reply. First of all, this query is faster than others, that we tried. And UPDATE is pretty fast (< 1 sec.), so it must use index, and subquery (SELECT) also use index tested separately. If we run such queries with 50 in parallel, and LIMIT 1, all works fine. If we run such queries with 50-100 in parallel, and LIMIT 1, all works pretty good. If we run such queries with 100 in parallel and LIMIT 1, after some time, it lock entire database. If we run such queries with 100 in parallel and LIMIT 250, it lock entire database in 10 minutes. And also how is this possible, that mysqld have so much mutexes?