summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb_rpl/r/rocksdb_slave_check_before_image_consistency.result
blob: a770822285bece852b9453ca20e5f0099df4d2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
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("Error_code: 1032");
create table t1 (a int primary key, b int, c int) engine = rocksdb;
create table t2 (a int unique, b int, c int) engine = rocksdb;
create table t3 (a int, b int, c int, key(a)) engine = rocksdb;
create table t4 (a int, b int, c int) engine = rocksdb;
insert into t1 values(1, 1, 1);
insert into t2 values(1, 1, 1);
insert into t3 values(1, 1, 1);
insert into t4 values(1, 1, 1);
include/sync_slave_sql_with_master.inc
set @@sql_log_bin = 0;
update t1 set c = 2;
update t2 set c = 2;
update t3 set c = 2;
update t4 set c = 2;
set @@sql_log_bin = 1;
update t1 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t1 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t2 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t2 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t3 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t3 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t4 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t4 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
select * from t1;
a	b	c
1	2	1
select * from t2;
a	b	c
1	2	1
select * from t3;
a	b	c
1	2	1
select * from t4;
a	b	c
1	2	1
select * from t1;
a	b	c
1	2	1
select * from t2;
a	b	c
1	2	1
select * from t3;
a	b	c
1	2	1
select * from t4;
a	b	c
1	2	1
drop table t1;
drop table t2;
drop table t3;
drop table t4;
include/sync_slave_sql_with_master.inc
include/stop_slave.inc
set @@global.slave_rows_search_algorithms = 'INDEX_SCAN,TABLE_SCAN,HASH_SCAN';
include/start_slave.inc
create table t1 (a int primary key, b int, c int) engine = rocksdb;
create table t2 (a int unique, b int, c int) engine = rocksdb;
create table t3 (a int, b int, c int, key(a)) engine = rocksdb;
create table t4 (a int, b int, c int) engine = rocksdb;
insert into t1 values(1, 1, 1);
insert into t2 values(1, 1, 1);
insert into t3 values(1, 1, 1);
insert into t4 values(1, 1, 1);
include/sync_slave_sql_with_master.inc
set @@sql_log_bin = 0;
update t1 set c = 2;
update t2 set c = 2;
update t3 set c = 2;
update t4 set c = 2;
set @@sql_log_bin = 1;
update t1 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t1 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t2 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t2 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t3 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t3 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
update t4 set b = 2;
include/wait_for_slave_sql_error.inc [errno=1032]
set @@sql_log_bin = 0;
update t4 set c = 1;
set @@sql_log_bin = 1;
include/stop_slave.inc
include/start_slave.inc
include/sync_slave_sql_with_master.inc
select * from t1;
a	b	c
1	2	1
select * from t2;
a	b	c
1	2	1
select * from t3;
a	b	c
1	2	1
select * from t4;
a	b	c
1	2	1
select * from t1;
a	b	c
1	2	1
select * from t2;
a	b	c
1	2	1
select * from t3;
a	b	c
1	2	1
select * from t4;
a	b	c
1	2	1
drop table t1;
drop table t2;
drop table t3;
drop table t4;
include/sync_slave_sql_with_master.inc
include/stop_slave.inc
set @@global.slave_rows_search_algorithms = DEFAULT;
include/start_slave.inc
include/rpl_end.inc