Debian Codegraph @

mysql-test/suite/group_replication/r/gr_replicate_server_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. Setup Group Replication on server 1 and 2.
9 include/start_and_bootstrap_group_replication.inc
10 include/start_group_replication.inc
11 include/rpl_gr_wait_for_number_of_members.inc
12
13 ############################################################
14 # 2. Setup a asynchronous replication connection from server 3
15 # into group (server 1)
16 CHANGE REPLICATION SOURCE TO SOURCE_HOST="127.0.0.1", SOURCE_USER="root", SOURCE_PASSWORD="", SOURCE_PORT=SERVER_3_PORT, SOURCE_AUTO_POSITION=1;
17 Warnings:
18 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
19 Note 1760 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.
20 include/start_slave.inc
21
22 ############################################################
23 # 3. Execute some transactions on server 3.
24 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
25 INSERT INTO t1 VALUES (0);
26 INSERT INTO t1 VALUES (1);
27 UPDATE t1 SET c1=2 WHERE c1=0;
28 SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1';
29 BEGIN;
30 COMMIT;
31 SET GTID_NEXT= 'AUTOMATIC';
32
33 ############################################################
34 # 4. Wait until transactions executed on server 3 are applied
35 # on group.
36 include/sync_slave_sql_with_master.inc
37 include/sync_slave_sql_with_master.inc
38
39 ############################################################
40 # 5. Execute a transaction on the group.
41 INSERT INTO t1 VALUES (6);
42 include/rpl_sync.inc
43
44 ############################################################
45 # 6. Validate data on server 3.
46 include/assert.inc ['There is a value 1 in table t1']
47 include/assert.inc ['There is a value 2 in table t1']
48 include/assert.inc ['There is no value 6 in table t1']
49
50 ############################################################
51 # 7. GTID_EXECUTED on server 1 must contain GTID_EXECUTED
52 # from server 3.
53 # Validate data on server 1.
54 include/assert.inc [GTID_EXECUTED must contain server 3 GTID_EXECUTED]
55 include/assert.inc ['There is a value 1 in table t1']
56 include/assert.inc ['There is a value 2 in table t1']
57 include/assert.inc ['There is a value 6 in table t1']
58
59 ############################################################
60 # 8. GTID_EXECUTED on server 2 must contain GTID_EXECUTED
61 # from server 3.
62 # Validate data on server 2.
63 include/assert.inc [GTID_EXECUTED must contain server 3 GTID_EXECUTED]
64 include/assert.inc ['There is a value 1 in table t1']
65 include/assert.inc ['There is a value 2 in table t1']
66 include/assert.inc ['There is a value 6 in table t1']
67
68 ############################################################
69 # 9. Clean data.
70 DROP TABLE t1;
71 include/sync_slave_sql_with_master.inc
72 include/sync_slave_sql_with_master.inc
73
74 ############################################################
75 # 10. Stop asynchronous replication connection from server 3
76 # into group (server 1)
77 include/stop_slave.inc
78 CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION=0 FOR CHANNEL "";
79
80 ############################################################
81 # 11. Stop Group Replication on server 1 and 2.
82 include/stop_group_replication.inc
83 include/stop_group_replication.inc
84 include/group_replication_end.inc