Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_checksum.result

raw
1 include/master-slave.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 master]
6 call mtr.add_suppression('Replica can not handle replication events with the checksum that source is configured to log');
7 call mtr.add_suppression('Replication event checksum verification failed');
8 call mtr.add_suppression('Relay log write failure: could not queue event from source');
9 call mtr.add_suppression('Event crc check failed! Most likely there is event corruption');
10 call mtr.add_suppression("Replica SQL for channel '': Error initializing relay log position: I/O error reading event at position .*, Error_code: MY-013117");
11 call mtr.add_suppression('Source is configured to log replication events with checksum, but will not send such events to replicas that cannot process');
12 set @master_save_binlog_checksum= @@global.binlog_checksum;
13 set @save_source_verify_checksum = @@global.source_verify_checksum;
14 select @@global.binlog_checksum as 'must be CRC32 because of the command line option';
15 must be CRC32 because of the command line option
16 CRC32
17 select @@session.binlog_checksum as 'no session var';
18 ERROR HY000: Variable 'binlog_checksum' is a GLOBAL variable
19 select @@global.source_verify_checksum as 'must be zero because of default';
20 must be zero because of default
21 0
22 select @@session.source_verify_checksum as 'no session var';
23 ERROR HY000: Variable 'source_verify_checksum' is a GLOBAL variable
24 set @slave_save_binlog_checksum= @@global.binlog_checksum;
25 set @save_replica_sql_verify_checksum = @@global.replica_sql_verify_checksum;
26 select @@global.replica_sql_verify_checksum as 'must be one because of default';
27 must be one because of default
28 1
29 select @@session.replica_sql_verify_checksum as 'no session var';
30 ERROR HY000: Variable 'replica_sql_verify_checksum' is a GLOBAL variable
31 show binary logs;
32 Log_name File_size Encrypted
33 master-bin.000001 # #
34 set @@global.binlog_checksum = NONE;
35 *** must be rotations seen ***
36 show binary logs;
37 Log_name File_size Encrypted
38 master-bin.000001 # #
39 master-bin.000002 # #
40 set @@global.binlog_checksum = default;
41 set @@global.binlog_checksum = CRC32;
42 set @@global.binlog_checksum = CRC32;
43 set @@global.source_verify_checksum = 0;
44 set @@global.source_verify_checksum = default;
45 set @@global.binlog_checksum = ADLER32;
46 ERROR 42000: Variable 'binlog_checksum' can't be set to the value of 'ADLER32'
47 set @@global.source_verify_checksum = 2;
48 ERROR 42000: Variable 'source_verify_checksum' can't be set to the value of '2'
49 set @@global.replica_sql_verify_checksum = 0;
50 set @@global.replica_sql_verify_checksum = default;
51 set @@global.replica_sql_verify_checksum = 2;
52 ERROR 42000: Variable 'replica_sql_verify_checksum' can't be set to the value of '2'
53 set @@global.binlog_checksum = NONE;
54 create table t1 (a int);
55 flush logs;
56 flush logs;
57 flush logs;
58 flush logs;
59 flush logs;
60 flush logs;
61 select count(*) as zero from t1;
62 zero
63 0
64 include/stop_slave.inc
65 set @@global.binlog_checksum = CRC32;
66 insert into t1 values (1) /* will not be applied on slave due to simulation */;
67 set @@global.debug='+d,simulate_replica_unaware_checksum';
68 start slave;
69 Warnings:
70 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
71 include/wait_for_slave_io_error.inc [errno=13114]
72 Last_IO_Error = 'Got fatal error 1236 from source when reading data from binary log: 'Replica can not handle replication events with the checksum that source is configured to log; the first event 'master-bin.000009' at XXX, the last event read from './master-bin.000010' at XXX, the last byte read from './master-bin.000010' at XXX.''
73 select count(*) as zero from t1;
74 zero
75 0
76 include/stop_slave.inc
77 set @@global.debug='-d,simulate_replica_unaware_checksum';
78 include/start_slave.inc
79 set @@global.source_verify_checksum = 1;
80 set @@session.debug='+d,simulate_checksum_test_failure';
81 show binlog events;
82 ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Error reading Log_event at position 4: Failed decoding event: Event crc check failed! Most likely there is event corruption.
83 set @@session.debug='-d,simulate_checksum_test_failure';
84 set @@global.source_verify_checksum = default;
85 include/stop_slave.inc
86 create table t2 (a int);
87 set @@global.debug='+d,simulate_checksum_test_failure';
88 start slave io_thread;
89 Warnings:
90 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
91 include/wait_for_slave_io_error.inc [errno=13122, 13115]
92 set @@global.debug='-d,simulate_checksum_test_failure';
93 start slave io_thread;
94 Warnings:
95 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
96 include/sync_slave_io_with_master.inc
97 set @@global.replica_sql_verify_checksum = 1;
98 set @@global.debug='+d,simulate_checksum_test_failure';
99 start slave sql_thread;
100 Warnings:
101 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
102 include/wait_for_slave_sql_error.inc [errno=13117]
103 Last_SQL_Error = 'Event crc check failed! Most likely there is event corruption.'
104 include/stop_slave.inc
105 set @@global.debug='-d,simulate_checksum_test_failure';
106 include/start_slave.inc
107 select count(*) as 'must be zero' from t2;
108 must be zero
109 0
110 stop slave;
111 Warnings:
112 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
113 reset slave;
114 Warnings:
115 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
116 reset master;
117 set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE");
118 flush logs;
119 set @@global.binlog_checksum= CRC32;
120 reset master;
121 flush logs;
122 create table t3 (a int, b char(5));
123 include/start_slave.inc
124 select count(*) as 'must be zero' from t3;
125 must be zero
126 0
127 include/stop_slave.inc
128 CHANGE REPLICATION SOURCE to SOURCE_HOST='127.0.0.1',SOURCE_PORT=MASTER_PORT, SOURCE_USER='root';
129 Warnings:
130 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
131 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.
132 flush logs;
133 reset master;
134 insert into t3 value (1, @@global.binlog_checksum);
135 include/start_slave.inc
136 flush logs;
137 select count(*) as 'must be one' from t3;
138 must be one
139 1
140 set @@global.binlog_checksum= IF(floor((rand()*1000)%2), "CRC32", "NONE");
141 insert into t3 value (1, @@global.binlog_checksum);
142 drop table t1, t2, t3;
143 set @@global.binlog_checksum = @master_save_binlog_checksum;
144 set @@global.source_verify_checksum = @save_source_verify_checksum;
145 set @@global.binlog_checksum = @slave_save_binlog_checksum;
146 set @@global.replica_sql_verify_checksum = @save_replica_sql_verify_checksum;
147 include/rpl_end.inc