mirror of
https://github.com/MariaDB/server.git
synced 2025-12-06 05:42:06 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@@ -73,8 +73,8 @@ while ($i) {
|
||||
|
||||
# Emulate corruption in binlog file when SHOW BINLOG EVENTS is executing
|
||||
--echo # 2. Corruption in master binlog and SHOW BINLOG EVENTS
|
||||
set @saved_dbug = @@global.debug_dbug;
|
||||
SET GLOBAL debug_dbug="+d,corrupt_read_log_event_char";
|
||||
SET @saved_dbug = @@global.debug_dbug;
|
||||
SET @@global.debug_dbug="d,corrupt_read_log_event_char";
|
||||
--echo SHOW BINLOG EVENTS;
|
||||
--disable_query_log
|
||||
send_eval SHOW BINLOG EVENTS FROM $pos;
|
||||
@@ -82,7 +82,7 @@ send_eval SHOW BINLOG EVENTS FROM $pos;
|
||||
--error ER_ERROR_WHEN_EXECUTING_COMMAND
|
||||
reap;
|
||||
|
||||
SET GLOBAL debug_dbug="-d,corrupt_read_log_event_char";
|
||||
SET @@global.debug_dbug=@saved_dbug;
|
||||
|
||||
# Emulate corruption on master with crc checking on master
|
||||
--echo # 3. Master read a corrupted event from binlog and send the error to slave
|
||||
@@ -107,20 +107,20 @@ let $wait_condition=
|
||||
SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE command = 'Binlog Dump';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SET GLOBAL debug_dbug="+d,corrupt_read_log_event2_set";
|
||||
SET @@global.debug_dbug="d,corrupt_read_log_event2_set";
|
||||
--connection slave
|
||||
START SLAVE IO_THREAD;
|
||||
let $slave_io_errno= 1236;
|
||||
--let $slave_timeout= 10
|
||||
--source include/wait_for_slave_io_error.inc
|
||||
--connection master
|
||||
SET GLOBAL debug_dbug="-d,corrupt_read_log_event2_set";
|
||||
SET @@global.debug_dbug=@saved_dbug;
|
||||
|
||||
# Emulate corruption on master without crc checking on master
|
||||
--echo # 4. Master read a corrupted event from binlog and send it to slave
|
||||
--connection master
|
||||
SET GLOBAL master_verify_checksum=0;
|
||||
SET GLOBAL debug_dbug="+d,corrupt_read_log_event2_set";
|
||||
SET @@global.debug_dbug="d,corrupt_read_log_event2_set";
|
||||
--connection slave
|
||||
START SLAVE IO_THREAD;
|
||||
# When the checksum error is detected, the slave sets error code 1743
|
||||
@@ -130,31 +130,29 @@ START SLAVE IO_THREAD;
|
||||
let $slave_io_errno= 1595,1743; # ER_SLAVE_RELAY_LOG_WRITE_FAILURE, ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE
|
||||
--source include/wait_for_slave_io_error.inc
|
||||
--connection master
|
||||
SET GLOBAL debug_dbug="-d,corrupt_read_log_event2_set";
|
||||
SET GLOBAL debug_dbug=@saved_dbug;
|
||||
SET @@global.debug_dbug=@saved_dbug;
|
||||
SET GLOBAL master_verify_checksum=1;
|
||||
|
||||
# Emulate corruption in network
|
||||
--echo # 5. Slave. Corruption in network
|
||||
--connection slave
|
||||
SET @saved_dbug_slave = @@GLOBAL.debug_dbug;
|
||||
SET GLOBAL debug_dbug="+d,corrupt_queue_event";
|
||||
SET @@global.debug_dbug="d,corrupt_queue_event";
|
||||
START SLAVE IO_THREAD;
|
||||
let $slave_io_errno= 1595,1743; # ER_SLAVE_RELAY_LOG_WRITE_FAILURE, ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE
|
||||
--source include/wait_for_slave_io_error.inc
|
||||
SET GLOBAL debug_dbug="-d,corrupt_queue_event";
|
||||
SET @@global.debug_dbug=@saved_dbug_slave;
|
||||
|
||||
# Emulate corruption in relay log
|
||||
--echo # 6. Slave. Corruption in relay log
|
||||
|
||||
SET GLOBAL debug_dbug="+d,corrupt_read_log_event_char";
|
||||
SET @@global.debug_dbug="d,corrupt_read_log_event_char";
|
||||
|
||||
START SLAVE SQL_THREAD;
|
||||
let $slave_sql_errno= 1593;
|
||||
--source include/wait_for_slave_sql_error.inc
|
||||
|
||||
SET GLOBAL debug_dbug="-d,corrupt_read_log_event_char";
|
||||
SET GLOBAL debug_dbug=@saved_dbug_slave;
|
||||
SET @@global.debug_dbug=@saved_dbug_slave;
|
||||
|
||||
# Start normal replication and compare same table on master
|
||||
# and slave
|
||||
|
||||
Reference in New Issue
Block a user