Debian Codegraph @

mysql-test/suite/mariabackup/compression_providers_unloaded.test

raw
1 let $alg = $MTR_COMBINATIONS;
2 call mtr.add_suppression("Background Page read failed to read, uncompress, or decrypt");
3 call mtr.add_suppression("Table is compressed or encrypted but uncompress or decrypt failed");
4 call mtr.add_suppression("Refusing to load corrupted table");
5 call mtr.add_suppression("InnoDB: File '.*test/t1\\.ibd' is corrupted");
6
7 if (`select count(*) = 0 from information_schema.plugins where plugin_name = 'provider_$alg' and plugin_status='active'`)
8 {
9 skip "Needs provider_$alg plugin";
10 }
11
12 --echo #
13 --echo # Testing mariabackup with $alg compression
14 --echo #
15
16 --echo # Create table with $alg compression
17 eval set global innodb_compression_algorithm = $alg;
18 eval create table t1 (a int, b text $column_params) engine = innodb page_compressed = 1;
19 insert t1 (a, b) values (0, repeat("abc", 100));
20 insert t1 (a, b) values (1, repeat("def", 1000));
21 insert t1 (a, b) values (2, repeat("ghi", 10000));
22 select a, left(b, 9), length(b) from t1;
23
24 --echo # Restart server without plugin
25 call mtr.add_suppression("mariadbd: MariaDB tried to use the \\w+ compression, but its provider plugin is not loaded");
26 let $restart_parameters = --disable-provider-$alg;
27 source include/restart_mysqld.inc;
28
29 --echo # xtrabackup backup
30 let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
31
32 error 1;
33 exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
34
35 drop table t1;
36 rmdir $targetdir;