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("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
create database d1;
create database d2;
create database d3;
create table d1.t1 (a int) engine=innodb;
insert into d1.t1 values(1);
create table d2.t2 (a int) engine=myisam;
create table d3.t3 (a int) engine=innodb;
include/sync_slave_sql_with_master.inc
[connection slave]
lock tables d1.t1 read;
set global debug= '+d,after_executed_write_rows_event';
[connection master]
update d1.t1 set a= 5;
update d1.t1 set a= 4;
update d1.t1 set a= 3;
update d1.t1 set a= 2;
update d1.t1 set a= 1;
set global debug= '+d,dump_thread_wait_after_send_write_rows';
insert into d2.t2 values(1);
[connection slave]
unlock tables;
set debug_sync= 'now WAIT_FOR executed';
set global debug= '-d,after_executed_write_rows_event';
set @start=now();
include/stop_slave.inc
include/assert.inc [STOP SLAVE should take at least 20 seconds]
include/start_slave.inc
[connection master]
set debug_sync= 'now SIGNAL signal.continue';
set debug_sync= 'RESET';
[connection master]
set @@global.debug= '-d,dump_thread_wait_after_send_write_rows';
include/sync_slave_sql_with_master.inc
include/rpl_diff.inc
include/rpl_diff.inc
include/rpl_diff.inc
[connection master]
delete from d1.t1;
insert into d1.t1 values(1);
delete from d2.t2;
delete from d3.t3;
include/sync_slave_sql_with_master.inc
[connection slave]
lock tables d1.t1 read;
set global debug= '+d,after_executed_write_rows_event';
[connection master]
update d1.t1 set a= 5;
update d1.t1 set a= 4;
update d1.t1 set a= 3;
update d1.t1 set a= 2;
update d1.t1 set a= 1;
set global debug= '+d,dump_thread_wait_after_send_write_rows';
insert into d3.t3 values(1);
[connection slave]
unlock tables;
set debug_sync= 'now WAIT_FOR executed';
set global debug= '-d,after_executed_write_rows_event';
set @start=now();
include/stop_slave.inc
include/assert.inc [STOP SLAVE should take less than 20 seconds]
include/start_slave.inc
[connection master]
set debug_sync= 'now SIGNAL signal.continue';
set debug_sync= 'RESET';
[connection master]
set global debug= '-d,dump_thread_wait_after_send_write_rows';
include/sync_slave_sql_with_master.inc
include/rpl_diff.inc
include/rpl_diff.inc
include/rpl_diff.inc
[connection master]
drop database d1;
drop database d2;
drop database d3;
include/rpl_end.inc
