File: //usr/share/mysql-test/suite/rpl/r/rpl_gtid_purged_fail_to_connect.result
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]
call mtr.add_suppression("Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.");
######## Initialize ########
CREATE TABLE t1 (a INT) ENGINE = InnoDB;
include/sync_slave_sql_with_master.inc
include/stop_slave.inc
include/stop_dump_threads.inc
INSERT INTO t1 VALUES (1);
FLUSH LOGS;
INSERT INTO t1 VALUES (2);
PURGE BINARY LOGS TO 'master-bin.000002';
include/assert.inc [PURGE BINARY LOGS successfully removed all but the latest files]
INSERT INTO t1 VALUES (2);
CHANGE MASTER TO MASTER_AUTO_POSITION = 1;
START SLAVE;
include/wait_for_slave_io_error.inc [errno=1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG]
include/stop_slave_sql.inc
CHANGE MASTER TO MASTER_LOG_FILE = 'master-bin.000002', MASTER_LOG_POS = MASTER_POS, MASTER_AUTO_POSITION = 0;
include/start_slave.inc
include/assert.inc [t1 should contain only one row with the value 2]
######## Clean up ########
=== Stop and reset slave/master (connection slave) ====
include/stop_slave.inc
RESET MASTER;
RESET SLAVE;
=== Stop and reset master (connection master) ====
RESET MASTER;
=== Start slave (connection slave) ====
include/start_slave.inc
=== Sync slave with master (connection master/slave) ====
DROP TABLE t1;
include/sync_slave_sql_with_master.inc
include/rpl_end.inc