Debian Codegraph @

mysql-test/suite/group_replication/r/gr_binlog_checksum_mixed.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. Set binlog_checksum to CRC32 and start GR on server1.
9 [connection server1]
10 SET @binlog_checksum_saved= @@GLOBAL.binlog_checksum;
11 SET @@GLOBAL.binlog_checksum= CRC32;
12 include/start_and_bootstrap_group_replication.inc
13 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY);
14
15 ############################################################
16 # 2. Set binlog_checksum to NONE and start GR on server2.
17 [connection server2]
18 SET @binlog_checksum_saved= @@GLOBAL.binlog_checksum;
19 SET @@GLOBAL.binlog_checksum= NONE;
20 include/start_group_replication.inc
21
22 ############################################################
23 # 3. Commit data on both members, all is OK.
24 [connection server1]
25 INSERT INTO t1 VALUES (1);
26 [connection server2]
27 INSERT INTO t1 VALUES (2);
28 include/rpl_sync.inc
29 include/assert.inc ['There are 2 rows in table t1']
30 include/diff_tables.inc [server1:t1, server2:t1]
31 ############################################################
32 # 4. Validate that server1 binary log has checksums.
33 [connection server1]
34 include/mysqlbinlog.inc
35 include/assert_grep.inc [binary log have checksums]
36 include/stop_group_replication.inc
37
38 ############################################################
39 # 5. Validate that server2 binary log does not have checksums.
40 [connection server2]
41 include/mysqlbinlog.inc
42 include/assert_grep.inc [binary log does not have checksums]
43 include/stop_group_replication.inc
44
45 ############################################################
46 # 6. Set binlog_checksum to NONE and start GR on server1.
47 [connection server1]
48 SET @@GLOBAL.binlog_checksum= NONE;
49 include/start_and_bootstrap_group_replication.inc
50 CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY);
51
52 ############################################################
53 # 7. Set binlog_checksum to CRC32 and start GR on server2.
54 [connection server2]
55 SET @@GLOBAL.binlog_checksum= CRC32;
56 include/start_group_replication.inc
57
58 ############################################################
59 # 8. Commit data on both members, all is OK.
60 [connection server1]
61 INSERT INTO t2 VALUES (1);
62 [connection server2]
63 INSERT INTO t2 VALUES (2);
64 include/rpl_sync.inc
65 include/assert.inc ['There are 2 rows in table t2']
66 include/diff_tables.inc [server1:t1, server2:t1]
67 ############################################################
68 # 9. Validate that server1 binary log does not have checksums.
69 [connection server1]
70 include/mysqlbinlog.inc
71 include/assert_grep.inc [binary log does not have checksums]
72
73 ############################################################
74 # 10. Validate that server2 binary log has checksums.
75 [connection server2]
76 include/mysqlbinlog.inc
77 include/assert_grep.inc [binary log have checksums]
78
79 ############################################################
80 # 11. Clean up.
81 [connection server1]
82 SET @@GLOBAL.binlog_checksum = @binlog_checksum_saved;
83 [connection server2]
84 SET @@GLOBAL.binlog_checksum = @binlog_checksum_saved;
85 DROP TABLE t1;
86 DROP TABLE t2;
87 include/group_replication_end.inc