1
include/master-slave.inc
3
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4
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.
6
call mtr.add_suppression('Slave SQL:.* Could not execute Write_rows event on table test.t1');
7
call mtr.add_suppression("Slave SQL:.* Could not execute Update_rows event on table d1.t1; Deadlock found when trying to get lock");
8
call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
9
create view worker_proc_list as SELECT id from Information_Schema.processlist
10
where state like 'Waiting for an event from Coordinator';
11
create view coord_proc_list as SELECT id from Information_Schema.processlist where state like 'Slave has read all relay log%';
12
include/stop_slave.inc
13
set @save.slave_parallel_workers= @@global.slave_parallel_workers;
14
set @@global.slave_parallel_workers= 4;
15
include/start_slave.inc
16
select min(id) from worker_proc_list into @w_id;
18
include/wait_for_slave_sql_to_stop.inc
19
include/start_slave.inc
20
select id from coord_proc_list into @c_id;
22
include/wait_for_slave_sql_error.inc [errno=1756]
23
include/start_slave.inc
24
CREATE TABLE t1 (a int primary key) engine=innodb;
25
insert into t1 values (1),(2);
26
insert into t1 values (3);
27
insert into t1 values (3);
28
include/wait_for_slave_sql_to_stop.inc
29
delete from t1 where a=3;
30
include/start_slave.inc
32
insert into t1 values (1),(2),(3);
33
create table t2m (a int) engine=myisam;
34
insert into t2m values (1);
36
update t1 set a=31 where a=3;
37
insert into t1 values (5),(6),(7);
40
update t1 set a=20 where a=2;
41
insert into t2m values (2);
42
update t1 set a=30 where a=3;
44
update t1 set a=21 where a=2;
45
include/wait_for_slave_sql_error.inc [errno=1213, 1205]
47
include/start_slave.inc
48
stop slave sql_thread;
49
set @@global.sql_slave_skip_counter=7;
51
select max(a) + 1 from t1 into @a;
52
insert into t1 set a=@a;
55
select max(a) + 1 from t1 into @a;
56
insert into t1 set a=@a;
59
select max(a) + 1 from t1 into @a;
60
insert into t1 set a=@a;
62
set @save.slave_transaction_retries= @@global.slave_transaction_retries;
63
set @@global.slave_transaction_retries= 1;
64
start slave sql_thread;
66
Note 1753 slave_transaction_retries is not supported in multi-threaded slave mode. In the event of a transient failure, the slave will not retry the transaction and will stop.
67
include/stop_slave.inc
68
create table t2 (a int);
69
insert into t2 values (1);
70
start slave until master_log_file='master-bin.000001', master_log_pos=MASTER_LOG_POS;
72
Note 1753 UNTIL condtion is not supported in multi-threaded slave mode. Slave is started in the sequential execution mode.
73
include/wait_for_slave_sql_to_stop.inc
74
include/start_slave.inc
76
Note 1753 slave_transaction_retries is not supported in multi-threaded slave mode. In the event of a transient failure, the slave will not retry the transaction and will stop.
80
drop view worker_proc_list;
81
drop view coord_proc_list;
82
set @@global.slave_transaction_retries= @save.slave_transaction_retries;
83
include/stop_slave.inc
84
start slave until sql_after_mts_gaps relay_log_file='dummy';
85
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'relay_log_file='dummy'' at line 1
86
start slave until sql_after_mts_gaps relay_log_pos=0;
87
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'relay_log_pos=0' at line 1
88
start slave until sql_after_mts_gaps master_log_file='dummy';
89
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'master_log_file='dummy'' at line 1
90
start slave until sql_after_mts_gaps master_log_pos=0;
91
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'master_log_pos=0' at line 1
92
start slave until sql_after_mts_gaps SQL_BEFORE_GTIDS='dummy';
93
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQL_BEFORE_GTIDS='dummy'' at line 1
94
call mtr.add_suppression('Slave SQL: Could not execute Update_rows event on table d1.t1; Deadlock found when trying to get lock');
95
include/start_slave.inc
98
create table d1.t1 (a int primary key) engine=innodb;
99
create table d2.t1 (a int primary key) engine=innodb;
100
create table d1.t2m (a int) engine=myisam;
101
insert into d1.t1 values (1),(2),(3);
102
insert into d2.t1 values (1),(2),(3);
103
insert into d1.t2m values (1);
105
update d1.t1 set a=31 where a=3;
106
insert into d1.t1 values (5),(6),(7);
108
update d1.t1 set a=20 where a=2;
109
insert into d1.t2m values (2);
110
update d1.t1 set a=30 where a=3;
111
insert into d1.t1 values (4);
115
update d1.t1 set a=21 where a=2;
116
include/wait_for_slave_sql_error.inc [errno=1213, 1205]
118
start slave until sql_after_mts_gaps;
119
include/wait_for_slave_sql_to_stop.inc
120
include/start_slave.inc
123
set @@global.slave_parallel_workers= @save.slave_parallel_workers;