mariadb/mysql-test/suite/s3
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
..
alter.result MDEV-31781 ALTER TABLE ENGINE=s3 fails 2023-08-15 14:00:28 +02:00
alter.test MDEV-31781 ALTER TABLE ENGINE=s3 fails 2023-08-15 14:00:28 +02:00
alter2.result Fixed bugs in s3 test cases 2020-06-19 12:03:13 +03:00
alter2.test Fixed bugs in s3 test cases 2020-06-19 12:03:13 +03:00
amazon.result MDEV-32884 Improve S3 options comaptibility 2023-12-07 15:57:43 +01:00
amazon.test MDEV-32884 Improve S3 options comaptibility 2023-12-07 15:57:43 +01:00
arguments.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 07:44:35 +04:00
arguments.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
backup.result Added testcase for MDEV-19585 2019-06-27 01:33:15 +03:00
backup.test Added testcase for MDEV-19585 2019-06-27 01:33:15 +03:00
basic.result MDEV-34867 engine S3 cause 500 error for huawei buckets 2024-09-11 16:15:37 +03:00
basic.test Added support for CHECK TABLE for S3 tables 2021-09-01 13:47:26 +03:00
create_database.inc MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
debug.result MDEV-32884 Improve S3 options comaptibility 2023-12-07 15:57:43 +01:00
debug.test MDEV-32884 Improve S3 options comaptibility 2023-12-07 15:57:43 +01:00
disabled.def MDEV-23730 s3.replication_partition 'innodb,mix' segv 2020-10-21 03:09:29 +03:00
discovery.result MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
discovery.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
drop_database.inc MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
encryption.opt MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
encryption.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 07:44:35 +04:00
encryption.test MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
innodb.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 07:44:35 +04:00
innodb.test Added S3 test case with InnoDB 2019-06-24 12:13:19 +03:00
my.cnf Merge branch '11.2' into 11.4 2024-09-18 11:27:53 +10:00
mysqldump.result Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
mysqldump.test MDEV-19867: fix mysqldump to by default not copy S3 tables 2019-06-26 20:59:35 +03:00
no_s3-master.opt MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
no_s3.result make S3 tests to run when S3 is statically linked 2020-09-10 13:32:27 +02:00
no_s3.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
partition.result update s3.partition result after 57ffcd686f 2024-03-14 11:43:13 +01:00
partition.test MDEV-23648 s3.partition_move 'innodb' test failure - object deleted before copy attempted 2020-10-21 03:09:30 +03:00
partition_create_fail.result Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
partition_create_fail.test Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
partition_move.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 07:44:35 +04:00
partition_move.test MDEV-23648 s3.partition_move 'innodb' test failure - object deleted before copy attempted 2020-10-21 03:09:30 +03:00
replication.inc MDEV-24087 s3.replication_partition fails in buildbot wiht replication failure 2021-02-08 21:03:04 +02:00
replication_delayed.cnf MDEV-23691 S3 storage engine: delayed slave can drop the table 2020-10-21 03:09:29 +03:00
replication_delayed.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
replication_delayed.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
replication_mixed.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_mixed.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
replication_mixed.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
replication_partition.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_partition.result A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 12:20:50 +04:00
replication_partition.test MDEV-24087 s3.replication_partition fails in buildbot wiht replication failure 2021-02-08 21:03:04 +02:00
replication_stmt.cnf Added support for more functions when using partitioned S3 tables 2020-04-19 17:33:51 +03:00
replication_stmt.result MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
replication_stmt.test MDEV-34705: Binlog-in-engine: Protect against concurrent RESET MASTER and dump threads 2025-07-23 16:19:50 +02:00
select.result MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
select.test MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
slave.cnf MDEV-34867 engine S3 cause 500 error for huawei buckets 2024-09-11 16:15:37 +03:00
suite.pm MDEV-34867 engine S3 cause 500 error for huawei buckets 2024-09-11 16:15:37 +03:00
unsupported.result Added support for replication for S3 2020-03-24 21:00:02 +02:00
unsupported.test Added support for replication for S3 2020-03-24 21:00:02 +02:00