Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_corruption.result |
include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] call mtr.add_suppression('Found invalid event in binary log'); call mtr.add_suppression("Slave I/O for channel '': Relay log write failure: could not queue event from master"); call mtr.add_suppression('event read from binlog did not pass crc check'); call mtr.add_suppression('Replication event checksum verification failed'); call mtr.add_suppression('Event crc check failed! Most likely there is event corruption'); call mtr.add_suppression("Slave SQL for channel '': Error initializing relay log position: I/O error reading event at position .*, Error_code: 1593"); SET @old_master_verify_checksum = @@master_verify_checksum; # 1. Creating test table/data and set corruption position for testing * insert/update/delete rows in table t1 * CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10), c VARCHAR(100)); include/sync_slave_sql_with_master.inc include/stop_slave.inc # 2. Corruption in master binlog and SHOW BINLOG EVENTS SET GLOBAL debug="d,corrupt_read_log_event_char"; SHOW BINLOG EVENTS; ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error # 3. Master read a corrupted event from binlog and send the error to slave SET GLOBAL debug="d,corrupt_read_log_event"; START SLAVE IO_THREAD; include/wait_for_slave_io_error.inc [errno=1236] # 4. Master read a corrupted event from binlog and send it to slave SET GLOBAL master_verify_checksum=0; SET GLOBAL debug="d,corrupt_read_log_event"; START SLAVE IO_THREAD; include/wait_for_slave_io_error.inc [errno=1595,1743] SET GLOBAL debug=""; SET GLOBAL master_verify_checksum=1; # 5. Slave. Corruption in network SET GLOBAL debug="d,corrupt_queue_event"; START SLAVE IO_THREAD; include/wait_for_slave_io_error.inc [errno=1595,1743] # 6. Slave. Corruption in relay log SET GLOBAL debug="d,corrupt_read_log_event_char"; START SLAVE SQL_THREAD; include/wait_for_slave_sql_error.inc [errno=1593] # 7. Seek diff for tables on master and slave SET GLOBAL debug= ""; include/start_slave.inc include/sync_slave_sql_with_master.inc include/diff_tables.inc [master:t1, slave:t1] # 8. Clean up SET GLOBAL master_verify_checksum = @old_master_verify_checksum; DROP TABLE t1; include/sync_slave_sql_with_master.inc include/rpl_end.inc