updating a unique key can cause parallel applying to hang
Bug #1280896 reported by
Seppo Jaakola
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership | Status tracked in 5.6 | |||||
5.5 |
Fix Committed
|
High
|
Seppo Jaakola | |||
5.6 |
Fix Released
|
High
|
Seppo Jaakola | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
updating a unique key value can cause server hang if slave node has enabled parallel slaves.
This seems to to be because such updates will require extra reads (with S locks) to make sure that there will be no duplicate keys with he new key value. These S locks were not taken in account when forming the write set, and we have a "asymmetric lock granularity" issue here.
To make this issue to surface, you will need high conflict rate updates on unique keys.
Changed in codership-mysql: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Seppo Jaakola (seppo-jaakola) |
milestone: | none → 5.1.63-23.5 |
tags: | added: i43277 |
To post a comment you must log in.
S locks for duplicate key checking is unnecessary for appliers, who run in high priority. Skipping these locks solves this issue. bazaar. launchpad. net/~codership/ codership- mysql/5. 6/revision/ 4043 bazaar. launchpad. net/~codership/ codership- mysql/wsrep- 5.5/revision/ 3952
Fixes pushed in:
wsrep-5.6: http://
wsrep-5.5: http://