mariadb/mysql-test/suite/galera_3nodes/t
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.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
GAL-501.test Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera-features#115.cnf galera mtr tests: synchronization between editions/branches (10.5) 2025-02-12 12:25:09 +01:00
galera-features#115.test galera mtr tests: synchronization between editions/branches (10.5) 2025-02-12 12:25:09 +01:00
galera-features#119.test galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
galera_2_cluster.cnf MDEV-32631 : galera_2_cluster: before_rollback(): Assertion `0' failed 2025-02-18 04:51:16 +01:00
galera_2_cluster.combinations MDEV-32631 : galera_2_cluster: before_rollback(): Assertion `0' failed 2025-02-18 04:51:16 +01:00
galera_2_cluster.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
galera_allowlist.cnf galera tests: synchronization after merge 2025-03-28 02:53:59 +01:00
galera_allowlist.test MDEV-33787 : Fix Galera test failures on 10.11 2024-04-03 10:04:40 +03:00
galera_certification_ccc.test galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
galera_certification_double_failure.test Galera4 2019-01-23 15:30:00 +04:00
galera_duplicate_primary_value.cnf MDEV-31658 : Deadlock found when trying to get lock during applying 2024-06-19 14:09:11 +02:00
galera_duplicate_primary_value.test galera mtr tests: synchronization between branches and editions 2025-04-02 04:50:11 +02:00
galera_dynamic_protocol.cnf galera mtr tests: synchronization between branches and editions 2025-04-02 04:50:11 +02:00
galera_dynamic_protocol.test galera mtr tests: synchronization between branches and editions 2025-04-02 04:50:11 +02:00
galera_evs_suspect_timeout.test galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
galera_garbd.test galera tests: corrections for garbd-related tests 2025-04-02 04:29:40 +02:00
galera_garbd_backup.cnf MDEV-24845 Oddities around innodb_fatal_semaphore_wait_threshold and global.innodb_disallow_writes 2022-03-25 10:04:15 +02:00
galera_garbd_backup.test galera tests: corrections for garbd-related tests 2025-04-02 04:29:40 +02:00
galera_gtid_2_cluster.cnf galera mtr tests: synchronization of tests between branches 2025-02-12 11:30:14 +01:00
galera_gtid_2_cluster.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
galera_gtid_consistency.cnf MDEV-33897 : Galera test failure on galera_3nodes.galera_gtid_consistency 2024-09-01 03:01:37 +02:00
galera_gtid_consistency.test MDEV-35344: post-fix correction for other galera tests 2024-11-06 04:59:10 +01:00
galera_ipv6_mariabackup.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ipv6_mariabackup.test Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera_ipv6_mariabackup_section.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ipv6_mariabackup_section.test Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera_ipv6_mysqldump.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ipv6_mysqldump.test galera mtr tests: synchronization of tests between branches 2025-02-12 11:30:14 +01:00
galera_ipv6_rsync.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ipv6_rsync.test Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera_ipv6_rsync_section.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ipv6_rsync_section.test Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera_ist_gcache_rollover.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ist_gcache_rollover.test 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.test galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_join_with_cc_B.test galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_join_with_cc_C.test galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_parallel_apply_3nodes.test galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
galera_pc_bootstrap.cnf Galera MTR Tests: force galera_3nodes.galera_pc_bootstrap.test to run on a fresh cluster in order to avoid interaction with galera_3nodes.galera_innobackupex_backup.test 2016-08-21 16:17:14 -04:00
galera_pc_bootstrap.test galera: synchronization changes to stop random test failures 2025-04-02 04:29:34 +02:00
galera_pc_weight.cnf Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
galera_pc_weight.test galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00
galera_safe_to_bootstrap.cnf MDEV-23574 : galera_3nodes.galera_ipv6_mariabackup_section MTR failed: Could not open '../galera/include/have_mariabackup.inc' 2020-09-17 12:55:06 +03:00
galera_safe_to_bootstrap.test galera: synchronization changes to stop random test failures 2025-04-02 04:29:34 +02:00
galera_ssl_reload.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_ssl_reload.test MDEV-32778 : galera_ssl_reload failed with warning message 2024-08-04 17:54:05 +02:00
galera_sst_donor_non_prim.cnf galera fix: Donor in non-Primary causes assertion in wsrep-lib 2025-02-12 12:25:09 +01:00
galera_sst_donor_non_prim.test galera fix: Donor in non-Primary causes assertion in wsrep-lib 2025-02-12 12:25:09 +01:00
galera_toi_vote.cnf MDEV-17048 Inconsistency voting support (#1373) 2019-08-28 09:19:24 +03:00
galera_toi_vote.test Use only MySQL code for TOI error vote 2024-09-01 02:58:27 +02:00
galera_var_dirty_reads2.test Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
galera_var_node_address.cnf galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
galera_var_node_address.test MDEV-20485 : Galera test failure on galera.galera_var_node_address 2023-12-21 18:45:57 +01:00
galera_vote_rejoin_mysqldump.cnf MDEV-17048 Inconsistency voting support (#1373) 2019-08-28 09:19:24 +03:00
galera_vote_rejoin_mysqldump.test galera: synchronization changes to stop random test failures 2025-04-02 04:29:34 +02:00
galera_wsrep_schema.test galera: synchronization changes to stop random test failures 2025-04-02 04:29:34 +02:00
galera_wsrep_schema_init.cnf MDEV-21402 : sql_safe_updates breaks Galera 4 2021-04-06 15:33:13 +03:00
galera_wsrep_schema_init.test galera: synchronization changes to stop random test failures 2025-04-02 04:29:34 +02:00
GCF-354.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
GCF-354.test galera mtr tests: minor fixes to make tests more reliable 2024-09-15 05:05:03 +02:00
GCF-363.cnf MDEV-17048 Inconsistency voting support (#1373) 2019-08-28 09:19:24 +03:00
GCF-363.test galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
GCF-376.cnf MDEV-17048 Inconsistency voting support (#1373) 2019-08-28 09:19:24 +03:00
GCF-376.test galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
inconsistency_shutdown.cnf galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions 2025-02-12 12:25:09 +01:00
inconsistency_shutdown.test galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
MDEV-29171.cnf MDEV-29171 changing the value of wsrep_gtid_domain_id with full cluster restart fails on some nodes 2023-01-17 14:08:28 +02:00
MDEV-29171.test MDEV-35344: post-fix correction for other galera tests 2024-11-06 04:59:10 +01:00
MDEV-36360.test MDEV-36360: Don't grab table-level X locks for applied inserts 2025-04-02 04:50:30 +02:00