mariadb/mysql-test/suite/galera
Hemant Dangi a49cef6633 MDEV-36117: MDL BF-BF conflict on ALTER and UPDATE with multi-level foreign key parents
Issue:
Mariadb acquires additional MDL locks on UPDATE/INSERT/DELETE statements
on table with foreign keys. For example, table t1 references t2, an
UPDATE to t1 will MDL lock t2 in addition to t1.
A replica may deliver an ALTER t1 and UPDATE t2 concurrently for
applying. Then the UPDATE may acquire MDL lock for t1, followed by a
conflict when the ALTER attempts to MDL lock on t1. Causing a BF-BF
conflict.

Solution:
Additional keys for the referenced/foreign table needs to be added
to avoid potential MDL conflicts with concurrent update and DDLs.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2025-05-20 17:23:55 +02:00
..
include Merge branch '10.5' into '10.6' 2025-04-02 04:43:24 +02:00
r MDEV-36117: MDL BF-BF conflict on ALTER and UPDATE with multi-level foreign key parents 2025-05-20 17:23:55 +02:00
t MDEV-36117: MDL BF-BF conflict on ALTER and UPDATE with multi-level foreign key parents 2025-05-20 17:23:55 +02:00
disabled.def MDEV-33850 : For Galera, create sequence with low cache got signal 6 error: [ERROR] WSREP: FSM: no such a transition REPLICATING -> COMMITTED 2025-04-02 04:29:40 +02:00
galera_2nodes.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_master.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_replica_2primary.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_slave.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2x2nodes.cnf MDEV-33523 Spurious deadlock error when wsrep_on=OFF 2024-06-06 19:19:34 +02:00
galera_3nodes_as_slave.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_4nodes.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
my.cnf cleanup: remove galera/wsrep magic from mtr 2014-10-01 23:38:27 +02:00
suite.pm galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00