| 1 |
--source include/have_debug.inc |
| 2 |
--source include/have_innodb_16k.inc |
| 3 |
|
| 4 |
--echo # |
| 5 |
--echo # Bug #27852003 LOG::ALLOC_LOB_PAGE MAY FAIL AND RETURN NULLPTR |
| 6 |
--echo # BUT IT IS NOT HANDLED |
| 7 |
--echo # |
| 8 |
|
| 9 |
--disable_query_log |
| 10 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't1' is full"); |
| 11 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't2' is full"); |
| 12 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't3' is full"); |
| 13 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't4' is full"); |
| 14 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* The table 't5' is full"); |
| 15 |
--enable_query_log |
| 16 |
|
| 17 |
SET GLOBAL innodb_compression_level = 0; |
| 18 |
|
| 19 |
CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 LONGBLOB) ROW_FORMAT=compressed; |
| 20 |
SET DEBUG = '+d,innodb_alloc_lob_page_failed'; |
| 21 |
--error ER_RECORD_FILE_FULL |
| 22 |
INSERT INTO t1 VALUES (1, REPEAT('x', 128*1024+1)); |
| 23 |
SET DEBUG = '-d,innodb_alloc_lob_page_failed'; |
| 24 |
|
| 25 |
CREATE TABLE t2 (f1 INT PRIMARY KEY, f2 LONGBLOB) ROW_FORMAT=compressed; |
| 26 |
SET DEBUG = '+d,innodb_lob_alloc_z_data_page_failed'; |
| 27 |
--error ER_RECORD_FILE_FULL |
| 28 |
INSERT INTO t2 VALUES (1, REPEAT('x', 128*1024+1)); |
| 29 |
SET DEBUG = '-d,innodb_lob_alloc_z_data_page_failed'; |
| 30 |
|
| 31 |
CREATE TABLE t3 (f1 INT PRIMARY KEY, f2 LONGBLOB) ROW_FORMAT=compressed; |
| 32 |
SET DEBUG = '+d,innodb_lob_alloc_z_frag_page_failed'; |
| 33 |
--error ER_RECORD_FILE_FULL |
| 34 |
INSERT INTO t3 VALUES (1, repeat('x', 128*1024+1)); |
| 35 |
SET DEBUG = '-d,innodb_lob_alloc_z_frag_page_failed'; |
| 36 |
|
| 37 |
CREATE TABLE t4 (f1 INT PRIMARY KEY, f2 LONGBLOB) ROW_FORMAT=compressed; |
| 38 |
SET DEBUG = '+d,innodb_lob_alloc_z_index_page_failed'; |
| 39 |
--error ER_RECORD_FILE_FULL |
| 40 |
INSERT INTO t4 VALUES (1, REPEAT('x', 14417920)); |
| 41 |
SET DEBUG = '-d,innodb_lob_alloc_z_index_page_failed'; |
| 42 |
|
| 43 |
CREATE TABLE t5 (f1 INT PRIMARY KEY, f2 LONGBLOB) ROW_FORMAT=compressed; |
| 44 |
SET DEBUG = '+d,innodb_zlob_first_use_only_1_frag_entries'; |
| 45 |
SET DEBUG = '+d,innodb_lob_alloc_z_frag_node_page_failed'; |
| 46 |
--error ER_RECORD_FILE_FULL |
| 47 |
INSERT INTO t5 VALUES (1, REPEAT('x', 28000000)); |
| 48 |
SET DEBUG = '-d,innodb_lob_alloc_z_frag_node_page_failed'; |
| 49 |
SET DEBUG = '-d,innodb_zlob_first_use_only_1_frag_entries'; |
| 50 |
|
| 51 |
FLUSH TABLES t1, t2, t3, t4, t5 FOR EXPORT; |
| 52 |
UNLOCK TABLES; |
| 53 |
DROP TABLE t1; |
| 54 |
DROP TABLE t2; |
| 55 |
DROP TABLE t3; |
| 56 |
DROP TABLE t4; |
| 57 |
DROP TABLE t5; |
| 58 |
|
| 59 |
SET GLOBAL innodb_compression_level = default; |
| 60 |
|