| 1 |
# ==== Purpose ==== |
| 2 |
# This test will set a debug point to ensure that right |
| 3 |
# error message is emitted when the read fails while |
| 4 |
# trying to read the magic buffer from the header of an event |
| 5 |
# |
| 6 |
# Related bugs and Worklogs |
| 7 |
# |
| 8 |
# Bug#28227243:WRONG ERROR TYPE RETURNED WHEN READ OF MAGIC BUFFER FAILS |
| 9 |
|
| 10 |
--source include/have_log_bin.inc |
| 11 |
--source include/have_debug.inc |
| 12 |
--source include/have_binlog_format_row.inc |
| 13 |
|
| 14 |
CREATE TABLE t1 (c1 INT) ENGINE=InnoDB; |
| 15 |
INSERT INTO t1 VALUES (1); |
| 16 |
|
| 17 |
SET DEBUG='+d,simulate_magic_header_io_failure'; |
| 18 |
--error ER_ERROR_WHEN_EXECUTING_COMMAND |
| 19 |
SHOW BINLOG EVENTS; |
| 20 |
SET DEBUG='-d,simulate_magic_header_io_failure'; |
| 21 |
|
| 22 |
# Cleanup |
| 23 |
DROP TABLE t1; |