summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_var_gtid_domain_id.result
blob: 0edfdf47d345c0f364bd638fa12634d3c4e505aa (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
connection node_2;
connection node_1;
# On node_1
connection node_1;
list of GTID variables :
gtid_domain_id	1
gtid_binlog_pos	
gtid_binlog_state	
gtid_current_pos	
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_2
connection node_2;
list of GTID variables :
gtid_domain_id	2
gtid_binlog_pos	
gtid_binlog_state	
gtid_current_pos	
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_1
connection node_1;
CREATE TABLE t1(i INT) ENGINE=INNODB;
CREATE TABLE t2(i INT) ENGINE=MEMORY;
INSERT INTO t1 VALUES(1);
SELECT * FROM t1;
i
1
SELECT * FROM t2;
i
list of GTID variables :
gtid_domain_id	1
gtid_binlog_pos	9999-1-3
gtid_binlog_state	9999-1-3
gtid_current_pos	9999-1-3
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_2
connection node_2;
SELECT * FROM t1;
i
1
list of GTID variables :
gtid_domain_id	2
gtid_binlog_pos	9999-1-3
gtid_binlog_state	9999-1-3
gtid_current_pos	
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_1
connection node_1;
INSERT INTO t2 VALUES(1);
SELECT * FROM t2;
i
1
list of GTID variables :
gtid_domain_id	1
gtid_binlog_pos	1-1-1,9999-1-3
gtid_binlog_state	1-1-1,9999-1-3
gtid_current_pos	1-1-1,9999-1-3
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_2
connection node_2;
SELECT * FROM t2;
i
list of GTID variables :
gtid_domain_id	2
gtid_binlog_pos	9999-1-3
gtid_binlog_state	9999-1-3
gtid_current_pos	
gtid_slave_pos	
wsrep_gtid_domain_id	9999
wsrep_gtid_mode	1
# On node_1
connection node_1;
DROP TABLE t1, t2;
#cleanup
connection node_1;
set global wsrep_on=OFF;
reset master;
set global wsrep_on=ON;
connection node_2;
set global wsrep_on=OFF;
reset master;
set global wsrep_on=ON;
connection node_2;
CALL mtr.add_suppression("Ignoring server id for non bootstrap node");
disconnect node_2;
disconnect node_1;
# End of test