Debian Codegraph @

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

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