Debian Codegraph @

mysql-test/suite/galera/r/galera_ist_mysqldump.result

raw
1 connection node_2;
2 connection node_1;
3 call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to ");
4 connection node_1;
5 connection node_2;
6 Setting SST method to mysqldump ...
7 call mtr.add_suppression("WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to '127\\.0\\.0\\.1'");
8 call mtr.add_suppression("Failed to load slave replication state from table mysql\\.gtid_slave_pos");
9 connection node_1;
10 CREATE USER 'sst';
11 GRANT ALL PRIVILEGES ON *.* TO 'sst';
12 SET GLOBAL wsrep_sst_auth = 'sst:';
13 connection node_2;
14 SET GLOBAL wsrep_sst_method = 'mysqldump';
15 Performing State Transfer on a server that has been shut down cleanly and restarted
16 connection node_1;
17 CREATE TABLE t1 (id int not null primary key,f1 CHAR(255)) ENGINE=InnoDB;
18 SET AUTOCOMMIT=OFF;
19 START TRANSACTION;
20 INSERT INTO t1 VALUES (1,'node1_committed_before');
21 INSERT INTO t1 VALUES (2,'node1_committed_before');
22 INSERT INTO t1 VALUES (3,'node1_committed_before');
23 INSERT INTO t1 VALUES (4,'node1_committed_before');
24 INSERT INTO t1 VALUES (5,'node1_committed_before');
25 COMMIT;
26 connection node_2;
27 SET AUTOCOMMIT=OFF;
28 START TRANSACTION;
29 INSERT INTO t1 VALUES (6,'node2_committed_before');
30 INSERT INTO t1 VALUES (7,'node2_committed_before');
31 INSERT INTO t1 VALUES (8,'node2_committed_before');
32 INSERT INTO t1 VALUES (9,'node2_committed_before');
33 INSERT INTO t1 VALUES (10,'node2_committed_before');
34 COMMIT;
35 Shutting down server ...
36 connection node_1;
37 SET AUTOCOMMIT=OFF;
38 START TRANSACTION;
39 INSERT INTO t1 VALUES (11,'node1_committed_during');
40 INSERT INTO t1 VALUES (12,'node1_committed_during');
41 INSERT INTO t1 VALUES (13,'node1_committed_during');
42 INSERT INTO t1 VALUES (14,'node1_committed_during');
43 INSERT INTO t1 VALUES (15,'node1_committed_during');
44 COMMIT;
45 START TRANSACTION;
46 INSERT INTO t1 VALUES (16,'node1_to_be_committed_after');
47 INSERT INTO t1 VALUES (17,'node1_to_be_committed_after');
48 INSERT INTO t1 VALUES (18,'node1_to_be_committed_after');
49 INSERT INTO t1 VALUES (19,'node1_to_be_committed_after');
50 INSERT INTO t1 VALUES (20,'node1_to_be_committed_after');
51 connect node_1a_galera_st_shutdown_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
52 SET AUTOCOMMIT=OFF;
53 START TRANSACTION;
54 INSERT INTO t1 VALUES (21,'node1_to_be_rollbacked_after');
55 INSERT INTO t1 VALUES (22,'node1_to_be_rollbacked_after');
56 INSERT INTO t1 VALUES (23,'node1_to_be_rollbacked_after');
57 INSERT INTO t1 VALUES (24,'node1_to_be_rollbacked_after');
58 INSERT INTO t1 VALUES (25,'node1_to_be_rollbacked_after');
59 connection node_2;
60 Starting server ...
61 SET AUTOCOMMIT=OFF;
62 START TRANSACTION;
63 INSERT INTO t1 VALUES (26,'node2_committed_after');
64 INSERT INTO t1 VALUES (27,'node2_committed_after');
65 INSERT INTO t1 VALUES (28,'node2_committed_after');
66 INSERT INTO t1 VALUES (29,'node2_committed_after');
67 INSERT INTO t1 VALUES (30,'node2_committed_after');
68 COMMIT;
69 connection node_1;
70 INSERT INTO t1 VALUES (31,'node1_to_be_committed_after');
71 INSERT INTO t1 VALUES (32,'node1_to_be_committed_after');
72 INSERT INTO t1 VALUES (33,'node1_to_be_committed_after');
73 INSERT INTO t1 VALUES (34,'node1_to_be_committed_after');
74 INSERT INTO t1 VALUES (35,'node1_to_be_committed_after');
75 COMMIT;
76 SET AUTOCOMMIT=OFF;
77 START TRANSACTION;
78 INSERT INTO t1 VALUES (36,'node1_committed_after');
79 INSERT INTO t1 VALUES (37,'node1_committed_after');
80 INSERT INTO t1 VALUES (38,'node1_committed_after');
81 INSERT INTO t1 VALUES (39,'node1_committed_after');
82 INSERT INTO t1 VALUES (40,'node1_committed_after');
83 COMMIT;
84 connection node_1a_galera_st_shutdown_slave;
85 INSERT INTO t1 VALUES (41,'node1_to_be_rollbacked_after');
86 INSERT INTO t1 VALUES (42,'node1_to_be_rollbacked_after');
87 INSERT INTO t1 VALUES (43,'node1_to_be_rollbacked_after');
88 INSERT INTO t1 VALUES (44,'node1_to_be_rollbacked_after');
89 INSERT INTO t1 VALUES (45,'node1_to_be_rollbacked_after');
90 ROLLBACK;
91 SET AUTOCOMMIT=ON;
92 SET SESSION wsrep_sync_wait=15;
93 SELECT COUNT(*) AS EXPECT_15 FROM t1;
94 EXPECT_15
95 35
96 SELECT * from t1;
97 id f1
98 1 node1_committed_before
99 2 node1_committed_before
100 3 node1_committed_before
101 4 node1_committed_before
102 5 node1_committed_before
103 6 node2_committed_before
104 7 node2_committed_before
105 8 node2_committed_before
106 9 node2_committed_before
107 10 node2_committed_before
108 11 node1_committed_during
109 12 node1_committed_during
110 13 node1_committed_during
111 14 node1_committed_during
112 15 node1_committed_during
113 16 node1_to_be_committed_after
114 17 node1_to_be_committed_after
115 18 node1_to_be_committed_after
116 19 node1_to_be_committed_after
117 20 node1_to_be_committed_after
118 26 node2_committed_after
119 27 node2_committed_after
120 28 node2_committed_after
121 29 node2_committed_after
122 30 node2_committed_after
123 31 node1_to_be_committed_after
124 32 node1_to_be_committed_after
125 33 node1_to_be_committed_after
126 34 node1_to_be_committed_after
127 35 node1_to_be_committed_after
128 36 node1_committed_after
129 37 node1_committed_after
130 38 node1_committed_after
131 39 node1_committed_after
132 40 node1_committed_after
133 SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1;
134 COUNT(*) = 0
135 1
136 COMMIT;
137 connection node_1;
138 SET AUTOCOMMIT=ON;
139 SET SESSION wsrep_sync_wait=15;
140 SELECT COUNT(*) AS EXPECT_15 FROM t1;
141 EXPECT_15
142 35
143 SELECT * from t1;
144 id f1
145 1 node1_committed_before
146 2 node1_committed_before
147 3 node1_committed_before
148 4 node1_committed_before
149 5 node1_committed_before
150 6 node2_committed_before
151 7 node2_committed_before
152 8 node2_committed_before
153 9 node2_committed_before
154 10 node2_committed_before
155 11 node1_committed_during
156 12 node1_committed_during
157 13 node1_committed_during
158 14 node1_committed_during
159 15 node1_committed_during
160 16 node1_to_be_committed_after
161 17 node1_to_be_committed_after
162 18 node1_to_be_committed_after
163 19 node1_to_be_committed_after
164 20 node1_to_be_committed_after
165 26 node2_committed_after
166 27 node2_committed_after
167 28 node2_committed_after
168 29 node2_committed_after
169 30 node2_committed_after
170 31 node1_to_be_committed_after
171 32 node1_to_be_committed_after
172 33 node1_to_be_committed_after
173 34 node1_to_be_committed_after
174 35 node1_to_be_committed_after
175 36 node1_committed_after
176 37 node1_committed_after
177 38 node1_committed_after
178 39 node1_committed_after
179 40 node1_committed_after
180 SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1;
181 COUNT(*) = 0
182 1
183 DROP TABLE t1;
184 COMMIT;
185 Performing State Transfer on a server that has been killed and restarted
186 connection node_1;
187 CREATE TABLE t1 (id int not null primary key,f1 CHAR(255)) ENGINE=InnoDB;
188 SET AUTOCOMMIT=OFF;
189 START TRANSACTION;
190 INSERT INTO t1 VALUES (1,'node1_committed_before');
191 INSERT INTO t1 VALUES (2,'node1_committed_before');
192 INSERT INTO t1 VALUES (3,'node1_committed_before');
193 INSERT INTO t1 VALUES (4,'node1_committed_before');
194 INSERT INTO t1 VALUES (5,'node1_committed_before');
195 COMMIT;
196 connection node_2;
197 SET AUTOCOMMIT=OFF;
198 START TRANSACTION;
199 INSERT INTO t1 VALUES (6,'node2_committed_before');
200 INSERT INTO t1 VALUES (7,'node2_committed_before');
201 INSERT INTO t1 VALUES (8,'node2_committed_before');
202 INSERT INTO t1 VALUES (9,'node2_committed_before');
203 INSERT INTO t1 VALUES (10,'node2_committed_before');
204 COMMIT;
205 Killing server ...
206 connection node_1;
207 SET AUTOCOMMIT=OFF;
208 START TRANSACTION;
209 INSERT INTO t1 VALUES (11,'node1_committed_during');
210 INSERT INTO t1 VALUES (12,'node1_committed_during');
211 INSERT INTO t1 VALUES (13,'node1_committed_during');
212 INSERT INTO t1 VALUES (14,'node1_committed_during');
213 INSERT INTO t1 VALUES (15,'node1_committed_during');
214 COMMIT;
215 START TRANSACTION;
216 INSERT INTO t1 VALUES (16,'node1_to_be_committed_after');
217 INSERT INTO t1 VALUES (17,'node1_to_be_committed_after');
218 INSERT INTO t1 VALUES (18,'node1_to_be_committed_after');
219 INSERT INTO t1 VALUES (19,'node1_to_be_committed_after');
220 INSERT INTO t1 VALUES (20,'node1_to_be_committed_after');
221 connect node_1a_galera_st_kill_slave, 127.0.0.1, root, , test, $NODE_MYPORT_1;
222 SET AUTOCOMMIT=OFF;
223 START TRANSACTION;
224 INSERT INTO t1 VALUES (21,'node1_to_be_rollbacked_after');
225 INSERT INTO t1 VALUES (22,'node1_to_be_rollbacked_after');
226 INSERT INTO t1 VALUES (23,'node1_to_be_rollbacked_after');
227 INSERT INTO t1 VALUES (24,'node1_to_be_rollbacked_after');
228 INSERT INTO t1 VALUES (25,'node1_to_be_rollbacked_after');
229 connection node_2;
230 Performing --wsrep-recover ...
231 Starting server ...
232 Using --wsrep-start-position when starting mysqld ...
233 SET AUTOCOMMIT=OFF;
234 START TRANSACTION;
235 INSERT INTO t1 VALUES (26,'node2_committed_after');
236 INSERT INTO t1 VALUES (27,'node2_committed_after');
237 INSERT INTO t1 VALUES (28,'node2_committed_after');
238 INSERT INTO t1 VALUES (29,'node2_committed_after');
239 INSERT INTO t1 VALUES (30,'node2_committed_after');
240 COMMIT;
241 connection node_1;
242 INSERT INTO t1 VALUES (31,'node1_to_be_committed_after');
243 INSERT INTO t1 VALUES (32,'node1_to_be_committed_after');
244 INSERT INTO t1 VALUES (33,'node1_to_be_committed_after');
245 INSERT INTO t1 VALUES (34,'node1_to_be_committed_after');
246 INSERT INTO t1 VALUES (35,'node1_to_be_committed_after');
247 COMMIT;
248 SET AUTOCOMMIT=OFF;
249 START TRANSACTION;
250 INSERT INTO t1 VALUES (36,'node1_committed_after');
251 INSERT INTO t1 VALUES (37,'node1_committed_after');
252 INSERT INTO t1 VALUES (38,'node1_committed_after');
253 INSERT INTO t1 VALUES (39,'node1_committed_after');
254 INSERT INTO t1 VALUES (40,'node1_committed_after');
255 COMMIT;
256 connection node_1a_galera_st_kill_slave;
257 INSERT INTO t1 VALUES (41,'node1_to_be_rollbacked_after');
258 INSERT INTO t1 VALUES (42,'node1_to_be_rollbacked_after');
259 INSERT INTO t1 VALUES (43,'node1_to_be_rollbacked_after');
260 INSERT INTO t1 VALUES (45,'node1_to_be_rollbacked_after');
261 INSERT INTO t1 VALUES (46,'node1_to_be_rollbacked_after');
262 ROLLBACK;
263 SET AUTOCOMMIT=ON;
264 SET SESSION wsrep_sync_wait=15;
265 SELECT COUNT(*) AS EXPECT_35 FROM t1;
266 EXPECT_35
267 35
268 SELECT * FROM t1;
269 id f1
270 1 node1_committed_before
271 2 node1_committed_before
272 3 node1_committed_before
273 4 node1_committed_before
274 5 node1_committed_before
275 6 node2_committed_before
276 7 node2_committed_before
277 8 node2_committed_before
278 9 node2_committed_before
279 10 node2_committed_before
280 11 node1_committed_during
281 12 node1_committed_during
282 13 node1_committed_during
283 14 node1_committed_during
284 15 node1_committed_during
285 16 node1_to_be_committed_after
286 17 node1_to_be_committed_after
287 18 node1_to_be_committed_after
288 19 node1_to_be_committed_after
289 20 node1_to_be_committed_after
290 26 node2_committed_after
291 27 node2_committed_after
292 28 node2_committed_after
293 29 node2_committed_after
294 30 node2_committed_after
295 31 node1_to_be_committed_after
296 32 node1_to_be_committed_after
297 33 node1_to_be_committed_after
298 34 node1_to_be_committed_after
299 35 node1_to_be_committed_after
300 36 node1_committed_after
301 37 node1_committed_after
302 38 node1_committed_after
303 39 node1_committed_after
304 40 node1_committed_after
305 SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1;
306 COUNT(*) = 0
307 1
308 COMMIT;
309 connection node_1;
310 SET AUTOCOMMIT=ON;
311 SET SESSION wsrep_sync_wait=15;
312 SELECT COUNT(*) AS EXPECT_35 FROM t1;
313 EXPECT_35
314 35
315 SELECT * FROM t1;
316 id f1
317 1 node1_committed_before
318 2 node1_committed_before
319 3 node1_committed_before
320 4 node1_committed_before
321 5 node1_committed_before
322 6 node2_committed_before
323 7 node2_committed_before
324 8 node2_committed_before
325 9 node2_committed_before
326 10 node2_committed_before
327 11 node1_committed_during
328 12 node1_committed_during
329 13 node1_committed_during
330 14 node1_committed_during
331 15 node1_committed_during
332 16 node1_to_be_committed_after
333 17 node1_to_be_committed_after
334 18 node1_to_be_committed_after
335 19 node1_to_be_committed_after
336 20 node1_to_be_committed_after
337 26 node2_committed_after
338 27 node2_committed_after
339 28 node2_committed_after
340 29 node2_committed_after
341 30 node2_committed_after
342 31 node1_to_be_committed_after
343 32 node1_to_be_committed_after
344 33 node1_to_be_committed_after
345 34 node1_to_be_committed_after
346 35 node1_to_be_committed_after
347 36 node1_committed_after
348 37 node1_committed_after
349 38 node1_committed_after
350 39 node1_committed_after
351 40 node1_committed_after
352 SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1;
353 COUNT(*) = 0
354 1
355 DROP TABLE t1;
356 COMMIT;
357 connection node_1;
358 CALL mtr.add_suppression("Slave SQL: Error 'The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement' on query");
359 DROP USER sst;
360 connection node_2;
361 CALL mtr.add_suppression("Slave SQL: Error 'The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement' on query");
362 CALL mtr.add_suppression("InnoDB: Error: Table \"mysql\"\\.\"innodb_index_stats\" not found");
363 CALL mtr.add_suppression("Can't open and lock time zone table");
364 CALL mtr.add_suppression("Can't open and lock privilege tables");
365 CALL mtr.add_suppression("Info table is not ready to be used");
366 CALL mtr.add_suppression("Native table .* has the wrong structure");
367 CALL mtr.add_suppression("Table 'mysql\\.gtid_slave_pos' doesn't exist");