mariadb/mysql-test/suite/multi_source
Brandon Nesterenko 90c3b2835d MDEV-20122: Deprecate MASTER_USE_GTID=Current_Pos to favor new MASTER_DEMOTE_TO_SLAVE option
New Feature:
========
This feature adds a safe replacement to the
MASTER_USE_GTID=Current_Pos option for CHANGE MASTER TO as
MASTER_DEMOTE_TO_SLAVE=<bool>. The use case of Current_Pos is to
transition a master to become a slave; however, can break
replication state if the slave executes local transactions due to
actively updating gtid_current_pos with gtid_binlog_pos and
gtid_slave_pos.

MASTER_DEMOTE_TO_SLAVE changes this use case by forcing users to set
Using_Gtid=Slave_Pos and merging gtid_binlog_pos into gtid_slave_pos
once at CHANGE MASTER TO time. Note that if gtid_slave_pos is more
recent than gtid_binlog_pos (as in the case of chain replication),
the replication state should be preserved.

Additionally, deprecate the `Current_Pos` option of MASTER_USE_GTID
to suggest the safe alternative option MASTER_DEMOTE_TO_SLAVE=TRUE.

Reviewed By:
============
Andrei Elkin <andrei.elkin@mariadb.com>
2022-07-26 16:35:24 -06:00
..
change_master.result Failed change master could leave around old relay log files 2021-09-14 13:43:50 +03:00
change_master.test Failed change master could leave around old relay log files 2021-09-14 13:43:50 +03:00
disabled.def MDEV-20101 Assertion failure on select @@global.'m2'.replicate_ignore_table; 2019-08-05 16:03:33 +04:00
gtid.cnf
gtid.result MDEV-20122: Deprecate MASTER_USE_GTID=Current_Pos to favor new MASTER_DEMOTE_TO_SLAVE option 2022-07-26 16:35:24 -06:00
gtid.test MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
gtid_ignore_duplicates.cnf
gtid_ignore_duplicates.result MDEV-16421 Make system tables crash safe 2018-08-14 12:18:38 +03:00
gtid_ignore_duplicates.test MDEV-16421 Make system tables crash safe 2018-08-14 12:18:38 +03:00
gtid_slave_pos.result MDEV-12179: Per-engine mysql.gtid_slave_pos table 2017-05-10 15:48:32 +02:00
gtid_slave_pos.test MDEV-12179: Per-engine mysql.gtid_slave_pos table 2017-05-10 15:48:32 +02:00
info_logs-master.opt
info_logs.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
info_logs.test MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
load_data.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
load_data.test MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
mdev-8874.cnf MDEV-8874 Replication filters configured in my.cnf are ignored if slave reset and reconfigured 2019-06-27 09:54:20 +05:30
mdev-8874.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
mdev-8874.test MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
mdev-9544.cnf MDEV-9544 FLUSH [RELAY] LOGS does not rotate logs for a named slave 2017-06-05 13:11:10 +05:30
mdev-9544.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
mdev-9544.test MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
multi_parallel.cnf Mdev-10664 Add statuses about optimistic parallel replication stalls 2018-04-19 16:04:23 +05:30
multi_parallel.result Mdev-10664 Add statuses about optimistic parallel replication stalls 2018-04-19 16:04:23 +05:30
multi_parallel.test Mdev-10664 Add statuses about optimistic parallel replication stalls 2018-04-19 16:04:23 +05:30
multi_parallel_loop.inc Mdev-10664 Add statuses about optimistic parallel replication stalls 2018-04-19 16:04:23 +05:30
multi_source_slave_alias_replica.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
multi_source_slave_alias_replica.test MDEV-20601: Make REPLICA a synonym for SLAVE in SQL statements 2020-02-04 18:16:21 +05:30
multisource.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
multisource.test Move mysql-test-run/extra/rpl_tests to suite/rpl/include 2018-03-29 13:59:44 +03:00
multisource_for_channel.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
multisource_for_channel.test MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
my.cnf test cleanup: remove Format_description_log_event size dependency 2015-09-04 10:33:53 +02:00
relaylog_events.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
relaylog_events.test MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
reset_slave.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
reset_slave.test MDEV-24576 Atomic CREATE TABLE 2021-05-19 22:54:13 +02:00
simple.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
simple.test MDEV-16437: merge 5.7 P_S replication instrumentation and tables 2021-04-16 09:02:00 +05:30
skip_counter.result MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
skip_counter.test MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it 2022-07-26 13:31:27 -06:00
status_vars.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
status_vars.test MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
syntax.result Mdev-10664 Add statuses about optimistic parallel replication stalls 2018-04-19 16:04:23 +05:30
syntax.test