Debian Codegraph @

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

raw
1 include/group_replication.inc [rpl_server_count=3]
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. Execute some transactions on server 3, which doesn't
9 # belong to the group.
10 RESET MASTER;
11 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
12 INSERT INTO t1 VALUES (0);
13 INSERT INTO t1 VALUES (1);
14 UPDATE t1 SET c1=2 WHERE c1=0;
15 SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1';
16 BEGIN;
17 COMMIT;
18 SET GTID_NEXT= 'AUTOMATIC';
19
20 ############################################################
21 # 2. Setup Group Replication on server 1 and 2.
22 include/start_and_bootstrap_group_replication.inc
23 include/start_group_replication.inc
24 include/rpl_gr_wait_for_number_of_members.inc
25
26 ############################################################
27 # 3. Replay server 3 binary log into group (server 2).
28 include/rpl_sync.inc
29
30 ############################################################
31 # 4. Validate data on server 3.
32 include/assert.inc ['There is a value 1 in table t1']
33 include/assert.inc ['There is a value 2 in table t1']
34
35 ############################################################
36 # 5. GTID_EXECUTED on server 1 must contain GTID_EXECUTED
37 # from server 3.
38 # Validate data on server 1.
39 include/assert.inc [GTID_EXECUTED must contain server 3 GTID_EXECUTED]
40 include/assert.inc ['There is a value 1 in table t1']
41 include/assert.inc ['There is a value 2 in table t1']
42
43 ############################################################
44 # 6. GTID_EXECUTED on server 2 must contain GTID_EXECUTED
45 # from server 3.
46 # Validate data on server 2.
47 include/assert.inc [GTID_EXECUTED must contain server 3 GTID_EXECUTED]
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
51 ############################################################
52 # 7. Stop and start Group Replication on server 1 to
53 # validate that recovery is working properly.
54 include/stop_group_replication.inc
55 INSERT INTO t1 VALUES (9);
56 include/start_group_replication.inc
57 include/assert.inc ['There is a value 9 in table t1 on server 1']
58
59 ############################################################
60 # 8. Clean data.
61 DROP TABLE t1;
62 DROP TABLE t1;
63 include/rpl_sync.inc
64
65 ############################################################
66 # 9. Stop Group Replication on server 1 and 2.
67 include/stop_group_replication.inc
68 include/stop_group_replication.inc
69 include/group_replication_end.inc