mariadb/mysql-test/suite/mariabackup
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
..
include Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
absolute_ibdata_paths.opt
absolute_ibdata_paths.result
absolute_ibdata_paths.test
alter_copy_excluded.opt
alter_copy_excluded.result
alter_copy_excluded.test
alter_copy_race.result
alter_copy_race.test
apply-log-only-incr.result
apply-log-only-incr.test
apply-log-only.result
apply-log-only.test
auth_plugin_win.opt
auth_plugin_win.result
auth_plugin_win.test
backup_grants.result
backup_grants.test
backup_lock_wait_timeout.result
backup_lock_wait_timeout.test
backup_ssl.result
backup_ssl.test
big_innodb_log.result
big_innodb_log.test
binlog.result
binlog.test
compress_qpress.result
compress_qpress.test
compression_providers_loaded,lz4.rdiff
compression_providers_loaded,lzma.rdiff
compression_providers_loaded,lzo.rdiff
compression_providers_loaded,snappy.rdiff
compression_providers_loaded.combinations
compression_providers_loaded.result
compression_providers_loaded.test
compression_providers_unloaded,lz4.rdiff
compression_providers_unloaded,lzma.rdiff
compression_providers_unloaded,lzo.rdiff
compression_providers_unloaded,snappy.rdiff
compression_providers_unloaded.combinations
compression_providers_unloaded.result sporadic mariabackup.compression_providers_unloaded failure 2022-05-10 12:19:18 +02:00
compression_providers_unloaded.test sporadic mariabackup.compression_providers_unloaded failure 2022-05-10 12:19:18 +02:00
create_during_backup.result
create_during_backup.test
create_with_data_directory_during_backup.result
create_with_data_directory_during_backup.test
data_directory.result
data_directory.test
defer_space.result
defer_space.test
disabled.def
drop_table_during_backup.result
drop_table_during_backup.test
encrypted_page_compressed.opt
encrypted_page_compressed.result
encrypted_page_compressed.test
encrypted_page_corruption,full_crc32.rdiff
encrypted_page_corruption.combinations
encrypted_page_corruption.opt
encrypted_page_corruption.result
encrypted_page_corruption.test
error_during_copyback.result
error_during_copyback.test
extra_lsndir.result
extra_lsndir.test
extra_lsndir_stream.result
extra_lsndir_stream.test
filekeys-data.enc
filekeys-data.key
full_backup.result
full_backup.test
huge_lsn,strict_crc32.rdiff Merge 10.7 into 10.8 2022-06-09 14:37:53 +03:00
huge_lsn.combinations
huge_lsn.opt
huge_lsn.result Merge 10.7 into 10.8 2022-06-09 14:37:53 +03:00
huge_lsn.test Merge 10.7 into 10.8 2022-06-09 14:37:53 +03:00
incremental_backup.result
incremental_backup.test Merge 10.5 into 10.6 2022-05-12 08:11:57 +03:00
incremental_backup_newdb_before_inc.result MDEV-28446 mariabackup prepare fails for incrementals if a new schema is created after full backup is taken 2022-05-11 14:48:51 +04:00
incremental_backup_newdb_before_inc.test MDEV-28446 mariabackup prepare fails for incrementals if a new schema is created after full backup is taken 2022-05-11 14:48:51 +04:00
incremental_compressed.result
incremental_compressed.test
incremental_ddl_before_backup.result
incremental_ddl_before_backup.test
incremental_ddl_during_backup.result
incremental_ddl_during_backup.test
incremental_encrypted.opt
incremental_encrypted.result
incremental_encrypted.test
incremental_newdb_while_backup.result Merge branch '10.3' into 10.4 2022-05-08 23:03:08 +02:00
incremental_newdb_while_backup.test Merge branch '10.3' into 10.4 2022-05-08 23:03:08 +02:00
incremental_rocksdb.opt
incremental_rocksdb.result
incremental_rocksdb.test
innodb_force_recovery.result
innodb_force_recovery.test
innodb_redo_log_overwrite.opt
innodb_redo_log_overwrite.result
innodb_redo_log_overwrite.test
innodb_redo_overwrite.opt
innodb_redo_overwrite.result
innodb_redo_overwrite.test
lock_ddl_per_table.opt
lock_ddl_per_table.result
lock_ddl_per_table.test
log_checksum_mismatch.result
log_checksum_mismatch.test
log_copy_interval.result MDEV-27919 mariabackup --log-copy-interval is measured in millisecondss in 10.5 and in microseconds in 10.6 2022-04-21 15:24:59 +03:00
log_copy_interval.test MDEV-27919 mariabackup --log-copy-interval is measured in millisecondss in 10.5 and in microseconds in 10.6 2022-04-21 15:24:59 +03:00
log_page_corruption.opt
log_page_corruption.result
log_page_corruption.test
mdev-14447.opt
mdev-14447.result
mdev-14447.test
mdev-18438.result
mdev-18438.test
missing_ibd.result
missing_ibd.test
nolock_ddl_during_backup_end.result
nolock_ddl_during_backup_end.test
options_check.result
options_check.test
page_compression_level.result
page_compression_level.test
partial.result
partial.test
partial_exclude.opt
partial_exclude.result
partial_exclude.test
partition_datadir.result
partition_datadir.test
partition_partial.opt
partition_partial.result
partition_partial.test
recreate_table_during_backup.result
recreate_table_during_backup.test
rename_during_backup.result
rename_during_backup.test
rename_during_mdl_lock.result
rename_during_mdl_lock.test
row_format_redundant.result
row_format_redundant.test
rpl_slave_info.result MDEV-21037 mariabackup does not detect multi-source replication slave 2022-04-25 15:00:09 +04:00
rpl_slave_info.test MDEV-21037 mariabackup does not detect multi-source replication slave 2022-04-25 15:00:09 +04:00
skip_innodb.opt
skip_innodb.result
skip_innodb.test
slave_info_norpl.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
slave_info_norpl.test MDEV-21037 mariabackup does not detect multi-source replication slave 2022-04-25 15:00:09 +04:00
small_ibd.result
small_ibd.test
suite.opt
suite.pm
system_versioning.result
system_versioning.test
truncate_during_backup.result
truncate_during_backup.test
undo_space_id.opt
undo_space_id.result
undo_space_id.test
unencrypted_page_compressed.result
unencrypted_page_compressed.test
unsupported_redo.result
unsupported_redo.test
xb_aws_key_management.opt
xb_aws_key_management.result
xb_aws_key_management.test
xb_compressed_encrypted.opt
xb_compressed_encrypted.result
xb_compressed_encrypted.test
xb_file_key_management.opt
xb_file_key_management.result
xb_file_key_management.test
xb_fulltext_encrypted.opt
xb_fulltext_encrypted.result
xb_fulltext_encrypted.test
xb_history.result
xb_history.test
xb_page_compress.result
xb_page_compress.test
xb_partition.result
xb_partition.test
xb_rocksdb.opt
xb_rocksdb.result
xb_rocksdb.test
xb_rocksdb_datadir.opt
xb_rocksdb_datadir.result
xb_rocksdb_datadir.test
xb_rocksdb_datadir_debug.opt
xb_rocksdb_datadir_debug.result
xb_rocksdb_datadir_debug.test
xbstream.result
xbstream.test