include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
[connection slave]
CALL mtr.add_suppression("Error looking for file after*");
CALL mtr.add_suppression("Recovery from master pos*");
include/stop_slave.inc
CHANGE MASTER TO MASTER_AUTO_POSITION=1;
include/start_slave.inc
# Sourcing extra/rpl_tests/rpl_generate_mts_gap_with_missing_relaylog_begin.inc
[connection slave]
include/stop_slave.inc
SET @@global.slave_parallel_workers=2;
include/start_slave.inc
[connection master]
CREATE DATABASE d1;
CREATE DATABASE d2;
CREATE TABLE d1.t (a INT PRIMARY KEY, name TEXT) ENGINE=INNODB;
CREATE TABLE d2.t (a INT PRIMARY KEY, name TEXT) ENGINE=INNODB;
FLUSH LOGS;
INSERT INTO d1.t VALUES (1, 'T1');
include/sync_slave_sql_with_master.inc
BEGIN;
INSERT INTO d2.t VALUES (2, 'Slave local');
[connection master]
INSERT INTO d2.t VALUES (1, 'T2');
INSERT INTO d2.t VALUES (2, 'T3');
INSERT INTO d2.t VALUES (3, 'T4');
INSERT INTO d1.t VALUES (2, 'T5');
[connection slave1]
include/rpl_stop_server.inc [server_number=2]
[connection slave]
include/rpl_start_server.inc [server_number=2 gtids=on parameters: --skip_slave_start=1 --sync_master_info=1 --relay-log-recovery=1]
include/start_slave.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:d2.t, slave:d2.t]
include/diff_tables.inc [master:d1.t, slave:d1.t]
# Sourcing extra/rpl_tests/rpl_generate_mts_gap_with_missing_relaylog_end.inc
[connection master]
DROP DATABASE d1;
DROP DATABASE d2;
include/sync_slave_sql_with_master.inc
include/rpl_reset.inc
include/stop_slave.inc
CHANGE MASTER TO MASTER_AUTO_POSITION=1;
include/start_slave.inc
# Sourcing extra/rpl_tests/rpl_generate_mts_gap_with_missing_relaylog_begin.inc
[connection slave]
include/stop_slave.inc
SET @@global.slave_parallel_workers=2;
include/start_slave.inc
[connection master]
CREATE DATABASE d1;
CREATE DATABASE d2;
CREATE TABLE d1.t (a INT PRIMARY KEY, name TEXT) ENGINE=INNODB;
CREATE TABLE d2.t (a INT PRIMARY KEY, name TEXT) ENGINE=INNODB;
FLUSH LOGS;
INSERT INTO d1.t VALUES (1, 'T1');
include/sync_slave_sql_with_master.inc
BEGIN;
INSERT INTO d2.t VALUES (2, 'Slave local');
[connection master]
INSERT INTO d2.t VALUES (1, 'T2');
INSERT INTO d2.t VALUES (2, 'T3');
INSERT INTO d2.t VALUES (3, 'T4');
INSERT INTO d1.t VALUES (2, 'T5');
[connection slave1]
include/rpl_stop_server.inc [server_number=2]
[connection slave]
include/rpl_start_server.inc [server_number=2 gtids=on parameters: --skip_slave_start=1 --sync_master_info=1 --relay-log-recovery=0]
START SLAVE;
ERROR HY000: Could not initialize master info structure; more error messages can be found in the MySQL error log
"Restart server with RELAY_LOG_RECOVERY=ON followed by START SLAVE
include/rpl_restart_server.inc [server_number=2 gtids=on parameters: --skip_slave_start=1 --sync_master_info=1 --relay-log-recovery=1]
include/start_slave.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:d2.t, slave:d2.t]
include/diff_tables.inc [master:d1.t, slave:d1.t]
# Sourcing extra/rpl_tests/rpl_generate_mts_gap_with_missing_relaylog_end.inc
[connection master]
DROP DATABASE d1;
DROP DATABASE d2;
include/sync_slave_sql_with_master.inc
include/rpl_reset.inc
include/rpl_end.inc
