| 1 |
# Debug crash points are used |
| 2 |
--source include/have_debug.inc |
| 3 |
|
| 4 |
# Valgrind would complain about memory leaks when we crash on purpose. |
| 5 |
--source include/not_valgrind.inc |
| 6 |
# Avoid CrashReporter popup on Mac |
| 7 |
--source include/not_crashrep.inc |
| 8 |
# Observed under high parallel load |
| 9 |
# [ERROR] Could not find a valid tablespace ... |
| 10 |
# [Note] Unable to open tablespace ... |
| 11 |
# This should be fixed after data dictionary and DDL recovery later. |
| 12 |
# ... and the crash recovery has finally success. |
| 13 |
CALL mtr.add_suppression(".*Could not find a valid tablespace file for"); |
| 14 |
|
| 15 |
CREATE TABLE t2 (a INT); |
| 16 |
|
| 17 |
INSERT INTO t2 VALUES(10); |
| 18 |
INSERT INTO t2 VALUES(11); |
| 19 |
|
| 20 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_rename"; |
| 21 |
--source include/expect_crash.inc |
| 22 |
--error CR_SERVER_LOST |
| 23 |
TRUNCATE TABLE t2; |
| 24 |
# Wait for 300 seconds instead of the default 100 |
| 25 |
--let $wait_counter= 3000 |
| 26 |
--source include/start_mysqld.inc |
| 27 |
SELECT * FROM t2; |
| 28 |
|
| 29 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_drop_old_table"; |
| 30 |
--source include/expect_crash.inc |
| 31 |
--error CR_SERVER_LOST |
| 32 |
TRUNCATE TABLE t2; |
| 33 |
# Wait for 300 seconds instead of the default 100 |
| 34 |
--let $wait_counter= 3000 |
| 35 |
--source include/start_mysqld.inc |
| 36 |
SELECT * FROM t2; |
| 37 |
|
| 38 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_create_new_table"; |
| 39 |
--source include/expect_crash.inc |
| 40 |
--error CR_SERVER_LOST |
| 41 |
TRUNCATE TABLE t2; |
| 42 |
# Wait for 300 seconds instead of the default 100 |
| 43 |
--let $wait_counter= 3000 |
| 44 |
--source include/start_mysqld.inc |
| 45 |
SELECT * FROM t2; |
| 46 |
|
| 47 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_innodb_complete"; |
| 48 |
--source include/expect_crash.inc |
| 49 |
--error CR_SERVER_LOST |
| 50 |
TRUNCATE TABLE t2; |
| 51 |
# Wait for 300 seconds instead of the default 100 |
| 52 |
--let $wait_counter= 3000 |
| 53 |
--source include/start_mysqld.inc |
| 54 |
SELECT * FROM t2; |
| 55 |
|
| 56 |
SET SESSION DEBUG = "+d,ib_truncate_rollback_test"; |
| 57 |
--error ER_GET_ERRNO |
| 58 |
TRUNCATE TABLE t2; |
| 59 |
SELECT * FROM t2; |
| 60 |
|
| 61 |
DROP TABLE t2; |
| 62 |
|