| 1 |
CALL mtr.add_suppression(".*Could not find a valid tablespace file for"); |
| 2 |
CREATE TABLE t2 (a INT); |
| 3 |
INSERT INTO t2 VALUES(10); |
| 4 |
INSERT INTO t2 VALUES(11); |
| 5 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_rename"; |
| 6 |
TRUNCATE TABLE t2; |
| 7 |
ERROR HY000: Lost connection to MySQL server during query |
| 8 |
# restart |
| 9 |
SELECT * FROM t2; |
| 10 |
a |
| 11 |
10 |
| 12 |
11 |
| 13 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_drop_old_table"; |
| 14 |
TRUNCATE TABLE t2; |
| 15 |
ERROR HY000: Lost connection to MySQL server during query |
| 16 |
# restart |
| 17 |
SELECT * FROM t2; |
| 18 |
a |
| 19 |
10 |
| 20 |
11 |
| 21 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_create_new_table"; |
| 22 |
TRUNCATE TABLE t2; |
| 23 |
ERROR HY000: Lost connection to MySQL server during query |
| 24 |
# restart |
| 25 |
SELECT * FROM t2; |
| 26 |
a |
| 27 |
10 |
| 28 |
11 |
| 29 |
SET SESSION DEBUG = "+d,ib_truncate_crash_after_innodb_complete"; |
| 30 |
TRUNCATE TABLE t2; |
| 31 |
ERROR HY000: Lost connection to MySQL server during query |
| 32 |
# restart |
| 33 |
SELECT * FROM t2; |
| 34 |
a |
| 35 |
10 |
| 36 |
11 |
| 37 |
SET SESSION DEBUG = "+d,ib_truncate_rollback_test"; |
| 38 |
TRUNCATE TABLE t2; |
| 39 |
ERROR HY000: Got error 168 - 'Unknown (generic) error from engine' from storage engine |
| 40 |
SELECT * FROM t2; |
| 41 |
a |
| 42 |
10 |
| 43 |
11 |
| 44 |
DROP TABLE t2; |