mariadb/mysql-test/suite/binlog_in_engine
Kristian Nielsen 0a68328673 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-06-11 11:32:10 +02:00
..
include MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
binlog_flush_purge.result MDEV-34705: Binlog-in-engine: Implement file header page 2025-04-06 10:01:51 +02:00
binlog_flush_purge.test MDEV-34705: Binlog-in-engine: Implement file header page 2025-04-06 10:01:51 +02:00
binlog_in_engine.result MDEV-34705: Binlog-in-engine: First working recovery 2025-04-06 10:01:51 +02:00
binlog_in_engine.test MDEV-34705: Binlog-in-engine: First working recovery 2025-04-06 10:01:51 +02:00
binlog_in_engine2.result MDEV-34705: Binlog-in-engine: No use of InnoDB tablespace and bufferpool 2025-04-06 10:01:50 +02:00
binlog_in_engine2.test MDEV-34705: Binlog-in-engine: Implement RESET MASTER 2025-04-06 10:01:50 +02:00
binlog_in_engine_restart.opt MDEV-34705: Binlog-in-engine: Configurable binlog directory 2025-04-06 10:01:50 +02:00
binlog_in_engine_restart.result MDEV-34705: Binlog-in-engine: No use of InnoDB tablespace and bufferpool 2025-04-06 10:01:50 +02:00
binlog_in_engine_restart.test MDEV-34705: Binlog-in-engine: No use of InnoDB tablespace and bufferpool 2025-04-06 10:01:50 +02:00
binlog_legacy_pos.result MDEV-34705: Binlog-in-engine: Integration with server-layer code 2025-04-10 19:16:55 +02:00
binlog_legacy_pos.test MDEV-34705: Binlog-in-engine: Integration with server-layer code 2025-04-10 19:16:55 +02:00
mariabackup_slave_provision_binlog_dir.cnf MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
mariabackup_slave_provision_binlog_dir.result MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
mariabackup_slave_provision_binlog_dir.test MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
mariabackup_slave_provision_nolock.cnf MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
mariabackup_slave_provision_nolock.result MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
mariabackup_slave_provision_nolock.test MDEV-34705: Binlog-in-engine: mariadb-backup integration 2025-04-25 15:28:32 +02:00
my.cnf MDEV-34705: Binlog-in-engine: Fix race between reader and flush 2025-04-07 08:47:46 +02:00
not_implemented_yet.result MDEV-34705: Binlog-in-engine: Integration with server-layer code 2025-04-10 19:16:55 +02:00
not_implemented_yet.test MDEV-34705: Binlog-in-engine: Integration with server-layer code 2025-04-10 19:16:55 +02:00
purge_dump_thread-master.opt MDEV-34705: Binlog-in-engine: Implement refcounting outstanding OOB records 2025-04-19 12:26:28 +02:00
purge_dump_thread.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-06-11 11:32:10 +02:00
purge_dump_thread.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-06-11 11:32:10 +02:00
recovery.opt MDEV-34705: Binlog-in-engine: Recovery intermediate commit 2025-04-06 10:01:51 +02:00
recovery.result MDEV-34705: Binlog-in-engine: First working recovery 2025-04-06 10:01:51 +02:00
recovery.test MDEV-34705: Binlog-in-engine: Implement file header page 2025-04-06 10:01:51 +02:00
recovery_large.opt MDEV-34705: Binlog-in-engine: Recovery testcase + few bugfixes 2025-04-06 10:01:51 +02:00
recovery_large.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-06-11 11:32:10 +02:00
recovery_large.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-06-11 11:32:10 +02:00
rpl_gtid_index-master.opt MDEV-34705: Binlog-in-engine: Configurable binlog directory 2025-04-06 10:01:50 +02:00
rpl_gtid_index-slave.opt MDEV-34705: Binlog-in-engine: Configurable binlog directory 2025-04-06 10:01:50 +02:00
rpl_gtid_index.result MDEV-34705: Binlog-in-engine: Working replication to slave 2025-04-06 10:00:17 +02:00
rpl_gtid_index.test MDEV-34705: Binlog-in-engine: Working replication to slave 2025-04-06 10:00:17 +02:00
rpl_oob.result MDEV-34705: Binlog-in-engine: Read side of out-of-band binlogging 2025-04-06 10:01:50 +02:00
rpl_oob.test MDEV-34705: Binlog-in-engine: Configurable binlog directory 2025-04-06 10:01:50 +02:00