[MDEV-31655] Parallel replication deadlock victim preference code errorneously removed Created: 2023-07-10 Updated: 2023-10-18 Resolved: 2023-08-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Storage Engine - InnoDB |
| Affects Version/s: | 10.4.30 |
| Fix Version/s: | 10.4.32, 10.5.23, 10.6.16, 10.9.8, 10.10.7, 10.11.6, 11.0.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kristian Nielsen | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Somewhere during the work on VATS in InnoDB, the code that calls thd_deadlock_victim_preference() was errorneously removed; and later the function itself was also removed errorneously as dead code.
This may lead to significantly more transaction retries in in-order parallel replication, since InnoDB may choose the wrong deadlock victim (If T1 and T2 need to replicate in-order and deadlock with each other, then choosing T1 as deadlock victim is pointless as T2 will be killed and deadlocked anyway by parallel replication). The lost code should be restored. |
| Comments |
| Comment by Marko Mäkelä [ 2023-08-03 ] |
|
Can you please provide a 10.6 version of this as well? |
| Comment by Kristian Nielsen [ 2023-08-15 ] |
|
Pushed to 10.4 (and another fix made appropriate for 10.6). |
| Comment by Ralf Gebhardt [ 2023-10-03 ] |
|
Elkin, knielsen, as "Pushed to 10.4 (and another fix made appropriate for 10.6)." is mentioned as a comment, which MDEV is the one for MariaDB Server 10.6 |
| Comment by Kristian Nielsen [ 2023-10-03 ] |
|
ralf.gebhardt , The MDEV is the same for 10.4 and 10.6, (There are two different commits because of changes in 10.6 that requires completely different code for this fix). Hope this helps,
|