Bug #87855 | INNODB PARTITION TABLE DEAD LOCK | ||
---|---|---|---|
Submitted: | 25 Sep 2017 13:37 | Modified: | 11 Apr 2018 13:58 |
Reporter: | zongfang zhang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 5.7.19,5.7.16 | OS: | SUSE (suse11sp3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | INNODB PARTITION TABLE DEAD LOCK |
[25 Sep 2017 13:37]
zongfang zhang
[25 Sep 2017 13:39]
zongfang zhang
MySQL Server 5.7.19 ,MySQL server 5.7.16,has this problem
[25 Sep 2017 14:06]
zongfang zhang
transaction level:| tx_isolation | READ-COMMITTED |
[25 Sep 2017 14:21]
zongfang zhang
The same problem with partitioned tables and non partitioned tables.
[26 Sep 2017 5:35]
MySQL Verification Team
Hello Zhang, Thank you for the bug report. As you know this is already logged internally, I'll just process this as duplicate of internal one Bug#26849141. Thanks, Umesh
[11 Apr 2018 13:58]
Erlend Dahl
Posted by developer: [25 Sep 2017 18:36] Jimmy Yang This is a typical deadlock scenario, which could be a text example: In this case, the application scenario forces using a secondary INDEX, which has two columns and would matches all rows in those update where clause. So InnoDB will lock all matching INDEX rows at the search phase. So there could be lock wait on locks placed on this secondary index, if multi-sessions are searching with non-differential columns. And also easily deadlocks. When hitting deadlocks frequently, DBA should check their schema design to see if it is done properly. In this particular case, the force of IDX_AGE is apparently problematic, when you start to update randomly. So the best is to add object_id to the index. There is not a bug from what we can see at the time being.