summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_backup_stage.result
blob: 6fb7d1643cda389e7766854c947aafcac7868867 (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
connection node_2;
connection node_1;
connection node_1;
CREATE TABLE t1 (f1 varchar(10)) ENGINE=InnoDB;
BACKUP STAGE START;
BACKUP STAGE FLUSH;
BACKUP STAGE END;
BACKUP STAGE START;
BACKUP STAGE FLUSH;
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1;
connection node_1a;
SET SESSION wsrep_sync_wait=0;
SET SESSION wsrep_retry_autocommit=0;
INSERT INTO t1 (f1) values ("node1_1");
ALTER TABLE t1 ADD COLUMN (f2 int(10));
connection node_2;
INSERT INTO t1 (f1) values ("node2_1");
ALTER TABLE t1 ADD COLUMN (f3 int(10));
connection node_1;
BACKUP STAGE BLOCK_DDL;
connect node_1c, 127.0.0.1, root, , test, $NODE_MYPORT_1;
connection node_1c;
SET SESSION wsrep_sync_wait=0;
connection node_2;
INSERT INTO t1 (f1) values("node2_2");
ALTER TABLE t1 ADD COLUMN (f5 int(10));
connection node_1a;
ALTER TABLE t1 ADD COLUMN (f4 int(10));
ERROR 08S01: Aborting TOI: Replication paused on node for FTWRL/BACKUP STAGE.
INSERT INTO t1 (f1) values("node1a");;
connection node_1c;
connection node_1;
BACKUP STAGE BLOCK_COMMIT;
connection node_1c;
SELECT variable_value="Donor/Desynced" FROM information_schema.global_status WHERE variable_name="wsrep_local_state_comment";
variable_value="Donor/Desynced"
1
connection node_2;
INSERT INTO t1 (f1) values("node2_3");
ALTER TABLE t1 ADD COLUMN (f6 int(10));
connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
connection node_1b;
SET SESSION wsrep_sync_wait=0;
SET SESSION wsrep_retry_autocommit=0;
ALTER TABLE t1 ADD COLUMN (f4 int(10));
ERROR 08S01: Aborting TOI: Replication paused on node for FTWRL/BACKUP STAGE.
INSERT INTO t1 (f1) values("node1b");;
connection node_1c;
SELECT COUNT(*)=2 FROM t1;
COUNT(*)=2
1
SELECT COUNT(*)=3 FROM information_schema.columns WHERE table_name = 't1';
COUNT(*)=3
1
connection node_1;
BACKUP STAGE END;
connection node_1a;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
connection node_1b;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
connection node_1;
SELECT COUNT(*)=4 FROM t1;
COUNT(*)=4
1
SELECT COUNT(*)=5 FROM information_schema.columns WHERE table_name = 't1';
COUNT(*)=5
1
connection node_2;
SELECT COUNT(*)=4 FROM t1;
COUNT(*)=4
1
SELECT COUNT(*)=5 FROM information_schema.columns WHERE table_name = 't1';
COUNT(*)=5
1
connection node_1;
DROP TABLE t1;
call mtr.add_suppression("WSREP: ALTER TABLE isolation failure");
call mtr.add_suppression("greater than drain seqno");