~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_parallel_start_stop.result

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include/master-slave.inc
 
2
Warnings:
 
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.
 
5
[connection master]
 
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;
 
17
kill query @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;
 
21
kill query @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
 
31
delete from t1;
 
32
insert into t1 values (1),(2),(3);
 
33
create table t2m (a int) engine=myisam;
 
34
insert into t2m values (1);
 
35
begin;
 
36
update t1 set a=31 where a=3;
 
37
insert into t1 values (5),(6),(7);
 
38
update t1 set a=a+10;
 
39
begin;
 
40
update t1 set a=20 where a=2;
 
41
insert into t2m values (2);
 
42
update t1 set a=30 where a=3;
 
43
commit;
 
44
update t1 set a=21 where a=2;
 
45
include/wait_for_slave_sql_error.inc [errno=1213, 1205]
 
46
rollback;
 
47
include/start_slave.inc
 
48
stop slave sql_thread;
 
49
set @@global.sql_slave_skip_counter=7;
 
50
begin;
 
51
select max(a) + 1 from t1 into @a;
 
52
insert into t1 set a=@a;
 
53
commit;
 
54
begin;
 
55
select max(a) + 1 from t1 into @a;
 
56
insert into t1 set a=@a;
 
57
commit;
 
58
begin;
 
59
select max(a) + 1 from t1 into @a;
 
60
insert into t1 set a=@a;
 
61
commit;
 
62
set @save.slave_transaction_retries= @@global.slave_transaction_retries;
 
63
set @@global.slave_transaction_retries= 1;
 
64
start slave sql_thread;
 
65
Warnings:
 
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;
 
71
Warnings:
 
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
 
75
Warnings:
 
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.
 
77
drop table t1;
 
78
drop table t2m;
 
79
drop table t2;
 
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
 
96
create database d1;
 
97
create database d2;
 
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);
 
104
begin;
 
105
update d1.t1 set a=31 where a=3;
 
106
insert into d1.t1 values (5),(6),(7);
 
107
begin;
 
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);
 
112
commit;
 
113
delete from d2.t1;
 
114
delete from d1.t1;
 
115
update d1.t1 set a=21 where a=2;
 
116
include/wait_for_slave_sql_error.inc [errno=1213, 1205]
 
117
rollback;
 
118
start slave until sql_after_mts_gaps;
 
119
include/wait_for_slave_sql_to_stop.inc
 
120
include/start_slave.inc
 
121
drop database d1;
 
122
drop database d2;
 
123
set @@global.slave_parallel_workers= @save.slave_parallel_workers;
 
124
include/rpl_end.inc