Debian Codegraph @

mysql-test/suite/group_replication/r/gr_set_gtid_next.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6 SET SESSION sql_log_bin= 0;
7 include/gtid_utils.inc
8 SET SESSION sql_log_bin= 1;
9 SET SESSION sql_log_bin= 0;
10 include/gtid_utils.inc
11 SET SESSION sql_log_bin= 1;
12
13 ############################################################
14 # 1. Execute some transactions on server 1 with and without
15 # GTID specified.
16 SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1';
17 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
18 SET GTID_NEXT= 'AUTOMATIC';
19 INSERT INTO t1 VALUES (1);
20
21 ############################################################
22 # 2. Execute some transactions on server 2 with and without
23 # GTID specified (including empty transactions).
24 CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
25 include/rpl_sync.inc
26 SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:2';
27 INSERT INTO t1 VALUES (2);
28 SET GTID_NEXT= 'AUTOMATIC';
29 SET GTID_NEXT= 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb:1';
30 INSERT INTO t2 VALUES (1);
31 SET GTID_NEXT= 'AUTOMATIC';
32 SET GTID_NEXT= 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb:2';
33 INSERT INTO t2 VALUES (2);
34 SET GTID_NEXT= 'AUTOMATIC';
35 SET GTID_NEXT= 'bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb:3';
36 BEGIN;
37 COMMIT;
38 SET GTID_NEXT= 'AUTOMATIC';
39 INSERT INTO t1 VALUES (3);
40 INSERT INTO t2 VALUES (3);
41 include/rpl_sync.inc
42
43 ############################################################
44 # 3. Check that GTID_EXECUTED on server 1 contains all
45 # transactions.
46 # Also check that data is on tables.
47 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
48 include/assert.inc ['There is a value 1 in table t1']
49 include/assert.inc ['There is a value 2 in table t1']
50 include/assert.inc ['There is a value 3 in table t1']
51 include/assert.inc ['There is a value 1 in table t2']
52 include/assert.inc ['There is a value 2 in table t2']
53 include/assert.inc ['There is a value 3 in table t2']
54
55 ############################################################
56 # 4. Check that GTID_EXECUTED on server 2 contains all
57 # transactions.
58 # Also check that data is on tables.
59 include/assert.inc [GTID_EXECUTED must contain all committed GTIDs]
60 include/assert.inc ['There is a value 1 in table t1']
61 include/assert.inc ['There is a value 2 in table t1']
62 include/assert.inc ['There is a value 3 in table t1']
63 include/assert.inc ['There is a value 1 in table t2']
64 include/assert.inc ['There is a value 2 in table t2']
65 include/assert.inc ['There is a value 3 in table t2']
66
67 ############################################################
68 # 5. Wait for stable set propagation and certification info
69 # garbage collection.
70
71 ############################################################
72 # 6. Check that stable set and certification info size are
73 # properly updated after stable set propagation and
74 # certification info garbage collection on server 1.
75 include/assert.inc ['Count_transactions_rows_validating must be 1']
76 include/assert.inc ['Transactions_committed_all_members must be equal to GTID_EXECUTED']
77
78 ############################################################
79 # 7. Check that stable set and certification info size are
80 # properly updated after stable set propagation and
81 # certification info garbage collection on server 2.
82 include/assert.inc ['Count_transactions_rows_validating must be 1']
83 include/assert.inc ['Transactions_committed_all_members must be equal to GTID_EXECUTED']
84
85 ############################################################
86 # 8. Shutdown.
87 DROP TABLE t1;
88 DROP TABLE t2;
89 SET SESSION sql_log_bin= 0;
90 include/gtid_utils_end.inc
91 SET SESSION sql_log_bin= 1;
92 SET SESSION sql_log_bin= 0;
93 include/gtid_utils_end.inc
94 SET SESSION sql_log_bin= 1;
95 include/group_replication_end.inc