--source include/have_debug.inc --source include/have_innodb_16k.inc --echo # --echo # Bug #27852003 LOG::ALLOC_LOB_PAGE MAY FAIL AND RETURN NULLPTR --echo # BUT IT IS NOT HANDLED --echo # --disable_query_log call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't1' is full"); call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't2' is full"); call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't3' is full"); --enable_query_log CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 LONGBLOB); SET DEBUG = '+d,innodb_alloc_lob_page_failed'; --error ER_RECORD_FILE_FULL INSERT INTO t1 VALUES (1, REPEAT('x', 81920)); SET DEBUG = '-d,innodb_alloc_lob_page_failed'; CHECK TABLE t1; CREATE TABLE t2 (f1 INT PRIMARY KEY, f2 LONGBLOB); SET DEBUG = '+d,innodb_lob_data_page_alloc_failed'; --error ER_RECORD_FILE_FULL INSERT INTO t2 VALUES (1, REPEAT('x', 81920)); SET DEBUG = '-d,innodb_lob_data_page_alloc_failed'; CHECK TABLE t2; CREATE TABLE t3 (f1 INT PRIMARY KEY, f2 LONGBLOB); SET DEBUG = '+d,innodb_lob_alloc_node_page_failed'; --error ER_RECORD_FILE_FULL INSERT INTO t3 VALUES (1, REPEAT('x', 163840)); SET DEBUG = '-d,innodb_lob_alloc_node_page_failed'; CHECK TABLE t3; FLUSH TABLES t1 FOR EXPORT; UNLOCK TABLES; FLUSH TABLES t2 FOR EXPORT; UNLOCK TABLES; FLUSH TABLES t3 FOR EXPORT; UNLOCK TABLES; DROP TABLE t1; DROP TABLE t2; DROP TABLE t3;