File: binlog_crash_safe_master_checksum.result

package info (click to toggle)
percona-xtrabackup 2.2.3-2.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 293,260 kB
  • ctags: 146,881
  • sloc: cpp: 1,051,960; ansic: 570,217; java: 54,595; perl: 53,495; pascal: 44,194; sh: 27,826; yacc: 15,314; python: 12,142; xml: 7,848; sql: 4,125; makefile: 1,459; awk: 785; lex: 758
file content (28 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;