| 1 |
# |
| 2 |
# Testing bzip2 compression provider with innodb |
| 3 |
# |
| 4 |
call mtr.add_suppression("MariaDB tried to use the .+ compression, but its provider plugin is not loaded"); |
| 5 |
set global innodb_compression_algorithm = bzip2; |
| 6 |
call mtr.add_suppression("Background Page read failed to read, uncompress, or decrypt"); |
| 7 |
call mtr.add_suppression("Table is compressed or encrypted but uncompress or decrypt failed"); |
| 8 |
call mtr.add_suppression("Table `test`.`t1` is corrupted. Please drop the table and recreate"); |
| 9 |
call mtr.add_suppression("InnoDB: File '.*test/t1\\.ibd' is corrupted"); |
| 10 |
call mtr.add_suppression("Table .*t1.* is compressed with (\\w+), which is not currently loaded. Please load the \\1 provider plugin to open the table"); |
| 11 |
create table t1 (a int, b text ) engine = innodb page_compressed = 1; |
| 12 |
insert t1 (a, b) values (0, repeat("abc", 100)); |
| 13 |
insert t1 (a, b) values (1, repeat("def", 1000)); |
| 14 |
insert t1 (a, b) values (2, repeat("ghi", 10000)); |
| 15 |
select a, left(b, 9), length(b) from t1; |
| 16 |
a left(b, 9) length(b) |
| 17 |
0 abcabcabc 300 |
| 18 |
1 defdefdef 3000 |
| 19 |
2 ghighighi 30000 |
| 20 |
# restart: --disable-provider-bzip2 |
| 21 |
select a, left(b, 9), length(b) from t1; |
| 22 |
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate. |
| 23 |
show warnings; |
| 24 |
Level Code Message |
| 25 |
Warning 4185 MariaDB tried to use the BZip2 compression, but its provider plugin is not loaded |
| 26 |
Error 1877 Table `test`.`t1` is corrupted. Please drop the table and recreate. |
| 27 |
drop table t1; |
| 28 |
# restart |