mariadb/mysql-test/suite/galera
Denis Protivensky ba6e0cbd1f MDEV-37229: Set proper trx isolation level for Wsrep system threads
Every Wsrep system thread should run with READ_COMMITTED transaction
isolation level to prevent issues caused by InnoDB gap locks.

The exception is statement-based replication for appliers, where
REPEATABLE_READ is required by the server code. To account for that,
set the isolation level before every applied event. It won't affect
an already running transaction, but allows to handle both statement-
and row-based replications accordingly.
However, the problem might arise with the mixed replication format.

Apart from that, there was a separate issue with applier thread vars:
wsrep_plugins_post_init() would overwrite thd->variables for every
applier thread and forget to restore proper default isolation level.
Then, upon every server transaction termination,
trans_reset_one_shot_statistics() would set thread's isolation
level to the one stored in thd->variables, thus spoiling the isolation
level value for appliers.
2025-12-16 14:40:46 +02:00
..
include Merge branch '10.5' into '10.6' 2025-04-02 04:43:24 +02:00
r MDEV-37229: Set proper trx isolation level for Wsrep system threads 2025-12-16 14:40:46 +02:00
t MDEV-37229: Set proper trx isolation level for Wsrep system threads 2025-12-16 14:40:46 +02:00
disabled.def Merge branch '10.6' into bb-10.11-release 2025-10-27 14:34:43 +01: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
suite.pm galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00