| 1 |
call mtr.add_suppression("Binary logging not possible"); |
| 2 |
call mtr.add_suppression("Attempting backtrace"); |
| 3 |
RESET MASTER; |
| 4 |
CREATE TABLE t1(c1 INT); |
| 5 |
SET debug = "+d,simulate_init_io_cache_failure"; |
| 6 |
SHOW BINLOG EVENTS; |
| 7 |
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not open log file |
| 8 |
SET debug = "-d,simulate_init_io_cache_failure"; |
| 9 |
SET debug = "+d,simulate_allocate_failure"; |
| 10 |
SHOW BINLOG EVENTS; |
| 11 |
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Error reading Log_event at position 4: Failed decoding event: memory allocation failed reading log event |
| 12 |
SET debug = "-d,simulate_allocate_failure"; |
| 13 |
SET debug = "+d,simulate_seek_failure"; |
| 14 |
SHOW BINLOG EVENTS FROM START_POS; |
| 15 |
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: I/O error reading log event |
| 16 |
SET debug = "-d,simulate_seek_failure"; |
| 17 |
SET debug = "+d,simulate_ostream_write_failure"; |
| 18 |
INSERT INTO t1 VALUES(1); |
| 19 |
ERROR HY000: Binary logging not possible. Message: An error occurred during flush stage of the commit. 'binlog_error_action' is set to 'ABORT_SERVER'. Server is being stopped. |
| 20 |
DROP TABLE t1; |