EVOLUTION-MANAGER
Edit File: rpl_gtid_crash_safe.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("Recovery from master pos"); create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 mtr uuid:1 2 test uuid:4 SET GLOBAL debug = '+d,crash_before_update_pos'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 mtr uuid:1 2 test uuid:4 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 mtr uuid:1 2 test uuid:7 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_after_update_pos_before_apply'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_before_writing_xid'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,half_binlogged_transaction'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_commit_before'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_commit_after_log'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_commit_after_prepare'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_reset.inc create table t1(a int, PRIMARY KEY(a)) ENGINE=ROCKSDB; insert into t1 values(1); insert into t1 values(2); use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 SET GLOBAL debug = '+d,crash_commit_after'; insert into t1 values(3); include/rpl_reconnect.inc SET GLOBAL debug = ``; use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:3 use test; select * from t1; a 1 2 change master to master_auto_position = 1; include/start_slave.inc rename table t1 to test1; use test; select * from test1; a 1 2 3 use test; select * from test1; a 1 2 3 drop table test1; include/stop_slave.inc change master to master_auto_position = 0; include/start_slave.inc use mysql; select * from slave_gtid_info; Id Database_name Last_gtid 1 test uuid:6 include/rpl_end.inc