mariadb/mysql-test/suite/multi_source
Brandon Nesterenko 5ab5ff08b0 MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it
This commit makes replicas crash-safe by default by changing the
Using_Gtid value to be Slave_Pos on a fresh slave start and after
RESET SLAVE is issued. If the primary server does not support GTIDs
(i.e., version < 10), the replica will fall back to Using_Gtid=No on
slave start and after RESET SLAVE.

The following additional informational messages/warnings are added:

 1. When Using_Gtid is automatically changed. That is, if RESET
SLAVE reverts Using_Gtid back to Slave_Pos, or Using_Gtid is
inferred to No from a CHANGE MASTER TO given with log coordinates
without MASTER_USE_GTID.
 2. If options are ignored in CHANGE MASTER TO. If CHANGE MASTER TO
is given with log coordinates, yet also specifies
MASTER_USE_GTID=Slave_Pos, a warning message is given that the log
coordinate options are ignored.

Additionally, an MTR macro has been added for RESET SLAVE,
reset_slave.inc, which provides modes/options for resetting a slave
in log coordinate or gtid modes. When in log coordinates mode, the
macro will execute CHANGE MASTER TO MASTER_USE_GTID=No after the
RESET SLAVE command. When in GTID mode, an extra parameter,
reset_slave_keep_gtid_state, can be set to reset or preserve the
value of gtid_slave_pos.

Reviewed By:
===========
Andrei Elkin <andrei.elkin@mariadb.com>
2022-07-26 13:31:27 -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 MDEV-26: Global Transaction ID. 2013-02-27 18:38:42 +01:00
gtid.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
gtid.test MDEV-9038 Binlog encryption tests 2016-12-05 20:19:01 +02:00
gtid_ignore_duplicates.cnf MDEV-8354: out-of-order error with --gtid-ignore-duplicates and row-based replication 2015-06-24 16:52:50 +02:00
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 MDEV-5277 - Ensure that all MySQL 5.6 options are supported by the 2013-11-25 18:49:40 +04:00
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 MDEV-4865 Change related to --log option/variable was merged partially 2013-08-13 13:35:36 +02:00