| 1 |
--echo # |
| 2 |
--echo # MDEV-9158 file_key_management should support reading from a named pipe |
| 3 |
--echo # |
| 4 |
--source include/not_embedded.inc |
| 5 |
--source include/have_sequence.inc |
| 6 |
|
| 7 |
--echo # Test checks if opening a too large key file, file key plugin will only read max key file size bytes and extra bytes will be ignored. |
| 8 |
|
| 9 |
replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR; |
| 10 |
eval select seq,repeat(md5(seq), 200) |
| 11 |
into outfile '$MYSQLTEST_VARDIR/tmp/filekeys-data-too-large.key' |
| 12 |
fields terminated by ';' |
| 13 |
from seq_1_to_1000; |
| 14 |
|
| 15 |
--echo #Large key file will read max size bytes, which is 1MB |
| 16 |
let SEARCH_PATTERN=filekeys-data-too-large.key too large, must be less than 1048576 bytes; |
| 17 |
eval call mtr.add_suppression("$SEARCH_PATTERN"); |
| 18 |
call mtr.add_suppression("Plugin 'file_key_management' init function returned error"); |
| 19 |
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed"); |
| 20 |
|
| 21 |
replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR; |
| 22 |
--error 2 |
| 23 |
INSTALL SONAME 'file_key_management'; |
| 24 |
|
| 25 |
--let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err |
| 26 |
--source include/search_pattern_in_file.inc |
| 27 |
|
| 28 |
--remove_file $MYSQLTEST_VARDIR/tmp/filekeys-data-too-large.key |