Debian Codegraph @

mysql-test/suite/group_replication/r/gr_huge_gtid_executed.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
7 ################################################################
8 # 1. Generate a huge GTID_EXECUTED with 70043 characters length.
9 # It will be like:
10 # aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:10000:10002:...:120000
11
12 ################################################################
13 # 2. Set huge GTID_EXECUTED on both servers.
14 [connection server2]
15 Set GTID_PURGED to huge gtid executed
16 include/assert.inc [GTID_EXECUTED must contain all 70043 characters]
17 [connection server1]
18 Set GTID_PURGED to huge gtid executed
19 include/assert.inc [GTID_EXECUTED must contain all 70043 characters]
20
21 ################################################################
22 # 3. Start Group Replication.
23 # The huge GTID_EXECUTED will be exchanged on distributed
24 # recovery process on server1.
25 [connection server2]
26 include/start_and_bootstrap_group_replication.inc
27 [connection server1]
28 include/start_group_replication.inc
29
30 ################################################################
31 # 4. Execute some transactions and check that nothing bad happens.
32 # Validate that data is delivered to both members.
33 [connection server2]
34 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
35 INSERT INTO t1 VALUES (1);
36 include/rpl_sync.inc
37 [connection server2]
38 include/assert.inc ['There is a value 1 in table t1']
39 [connection server1]
40 include/assert.inc ['There is a value 1 in table t1']
41
42 ############################################################
43 # 5. Wait for stable set propagation and certification info
44 # garbage collection.
45 [connection server2]
46 [connection server1]
47
48 ############################################################
49 # 6. Check that stable set is properly updated after stable
50 # set propagation and certification info garbage
51 # collection.
52 [connection server2]
53 include/assert.inc ['Transactions_committed_all_members must be equal to GTID_EXECUTED']
54 [connection server1]
55 include/assert.inc ['Transactions_committed_all_members must be equal to GTID_EXECUTED']
56
57 ############################################################
58 # 7. Clean up.
59 DROP TABLE t1;
60 include/group_replication_end.inc