mariadb/mysql-test/suite/galera_3nodes/r
Kristian Nielsen 84da20e658 MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads
This is actually an existing problem in the old binlog implementation, and
this patch is applicable to old binlog also. The problem is that RESET
MASTER can run concurrently with binlog dump threads / connected slaves.
This will remove the binlog from under the feet of the reader, which can
cause all sorts of strange behaviour.

This patch fixes the problem by disallowing to run RESET MASTER when dump
threads (or other RESET MASTER or SHOW BINARY LOGS) are running. An error is
thrown in this case, user must stop slaves and/or kill dump threads to make
the RESET MASTER go through. A slave that connects in the middle of RESET
MASTER will wait for it to complete.

Fix a lot of test cases to kill any lingering dump threads before doing
RESET MASTER, mostly just by sourcing include/kill_binlog_dump_threads.inc.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2025-07-23 16:19:50 +02:00
..
GAL-501.result Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera-features#115.result galera mtr tests: synchronization between editions/branches (10.5) 2025-02-12 12:25:09 +01:00
galera-features#119.result galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
galera_2_cluster.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
galera_allowlist.result MDEV-33787 : Fix Galera test failures on 10.11 2024-04-03 10:04:40 +03:00
galera_certification_ccc.result Galera4 2019-01-23 15:30:00 +04:00
galera_certification_double_failure.result Galera4 2019-01-23 15:30:00 +04:00
galera_duplicate_primary_value.result MDEV-31658 : Deadlock found when trying to get lock during applying 2024-06-19 14:09:11 +02:00
galera_dynamic_protocol.result MDEV-22131 allow transition from unencrypted to TLS cluster communication without cluster downtime 2021-04-29 08:09:20 +03:00
galera_evs_suspect_timeout.result MDEV-35473 : Sporadic failures in the galera_3nodes.galera_evs_suspect_timeout mtr test 2024-11-28 01:02:35 +01:00
galera_garbd.result galera tests: corrections for garbd-related tests 2025-04-02 04:29:40 +02:00
galera_garbd_backup.result galera tests: corrections for garbd-related tests 2025-04-02 04:29:40 +02:00
galera_gtid_2_cluster.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
galera_gtid_consistency.result MDEV-35344: post-fix correction for other galera tests 2024-11-06 04:59:10 +01:00
galera_ipv6_mariabackup.result Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera_ipv6_mariabackup_section.result Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera_ipv6_mysqldump.result Merge branch 10.5 into 10.6 2024-07-09 11:56:47 +02:00
galera_ipv6_rsync.result Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera_ipv6_rsync_section.result Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera_ist_gcache_rollover.result MDEV-33036 : Galera test case galera_3nodes.galera_ist_gcache_rollover has warning 2024-01-30 00:26:13 +01:00
galera_join_with_cc_A.result galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_join_with_cc_B.result galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_join_with_cc_C.result galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_parallel_apply_3nodes.result galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
galera_pc_bootstrap.result galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
galera_pc_weight.result galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_safe_to_bootstrap.result galera mtr tests: synchronization of tests between branches 2025-02-12 11:30:14 +01:00
galera_ssl_reload.result MDEV-32778 : galera_ssl_reload failed with warning message 2024-08-04 17:54:05 +02:00
galera_sst_donor_non_prim.result galera fix: Donor in non-Primary causes assertion in wsrep-lib 2025-02-12 12:25:09 +01:00
galera_toi_vote.result Use only MySQL code for TOI error vote 2024-09-01 02:58:27 +02:00
galera_var_dirty_reads2.result Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
galera_var_node_address.result MDEV-20485 : Galera test failure on galera.galera_var_node_address 2023-12-21 18:45:57 +01:00
galera_vote_rejoin_mysqldump.result Merge branch '10.5' into '10.6' 2025-04-02 04:43:24 +02:00
galera_wsrep_schema.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-14 08:00:56 +04:00
galera_wsrep_schema_init.result MDEV-30172: Galera test case cleanup 2022-12-07 07:33:51 +02:00
GCF-354.result galera mtr tests: minor fixes to make tests more reliable 2024-09-15 05:05:03 +02:00
GCF-363.result galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
GCF-376.result galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
inconsistency_shutdown.result galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
MDEV-29171.result MDEV-35344: post-fix correction for other galera tests 2024-11-06 04:59:10 +01:00
MDEV-36360.result MDEV-36360: Don't grab table-level X locks for applied inserts 2025-04-02 04:50:30 +02:00