Debian Codegraph @

mysql-test/suite/group_replication/r/gr_stop_with_gtid_gaps.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 [connection server1]
7 SET SESSION sql_log_bin= 0;
8 include/gtid_utils.inc
9 SET SESSION sql_log_bin= 1;
10 [connection server2]
11 SET SESSION sql_log_bin= 0;
12 include/gtid_utils.inc
13 SET SESSION sql_log_bin= 1;
14
15 ############################################################
16 # 1. Bootstrap the group and create a table on it.
17 [connection server1]
18 include/start_and_bootstrap_group_replication.inc
19 CREATE TABLE t1 (i INT PRIMARY KEY);
20 include/assert.inc [GTID_EXECUTED must contain two transactions, one from view change and other being the create table.]
21
22 ############################################################
23 # 2. Add one more member to the group.
24 # Assert that both members have 3 GTIDs.
25 # Server 2 leaves the group.
26 [connection server2]
27 include/start_group_replication.inc
28 include/assert.inc [GTID_EXECUTED must contain three transactions, the new one from the insert.]
29 [connection server1]
30 include/assert.inc [GTID_EXECUTED must contain three transactions, the new one from the insert.]
31 [connection server2]
32 include/stop_group_replication.inc
33
34 ############################################################
35 # 3. Execute transactions with specificed GTIDs to create
36 # holes on GTID_EXECUTED.
37 [connection server1]
38 SET GTID_NEXT= "GROUP_REPLICATION_GROUP_NAME:4";
39 INSERT INTO t1 VALUES(5);
40 SET GTID_NEXT= "GROUP_REPLICATION_GROUP_NAME:6";
41 INSERT INTO t1 VALUES(6);
42 SET GTID_NEXT='AUTOMATIC';
43
44 ############################################################
45 # 4. Shutdown the group and bootstrap the group again.
46 include/stop_group_replication.inc
47 include/assert.inc [GTID_EXECUTED must contain holes]
48 include/start_and_bootstrap_group_replication.inc
49 include/assert.inc [GTID_EXECUTED must contain no holes]
50 include/assert_binlog_events.inc [Gtid # Query/BEGIN # View_change # Query/COMMIT # !Gtid_transaction # Gtid # Query/BEGIN # View_change # Query/COMMIT # !Gtid_transaction # !Gtid_transaction # Gtid # Query/BEGIN # View_change # Query/COMMIT]
51
52 ############################################################
53 # 5. Server 2 joins the group again.
54 [connection server2]
55 include/start_group_replication.inc
56 include/assert.inc [GTID_EXECUTED must contain no holes]
57 include/assert_binlog_events.inc [Gtid # Query/BEGIN # View_change # Query/COMMIT # !Gtid_transaction # Gtid # Query/BEGIN # View_change # Query/COMMIT # !Gtid_transaction # !Gtid_transaction # Gtid # Query/BEGIN # View_change # Query/COMMIT # Gtid # Query/BEGIN # View_change # Query/COMMIT]
58
59 ############################################################
60 # 6. Cleanup.
61 DROP TABLE t1;
62 [connection server1]
63 SET SESSION sql_log_bin= 0;
64 include/gtid_utils_end.inc
65 SET SESSION sql_log_bin= 1;
66 [connection server2]
67 SET SESSION sql_log_bin= 0;
68 include/gtid_utils_end.inc
69 SET SESSION sql_log_bin= 1;
70 include/group_replication_end.inc