mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Create 'main' test directory and move 't' and 'r' there
This commit is contained in:
23
mysql-test/main/stat_tables-enospc.test
Normal file
23
mysql-test/main/stat_tables-enospc.test
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# MDEV-6181 EITS could eat all tmpdir space and hang
|
||||
#
|
||||
# test that ANALYZE TABLE is immediately aborted when going out of disk space
|
||||
--source include/have_debug.inc
|
||||
call mtr.add_suppression("No space left on device");
|
||||
create table t1 (a varchar(255), b varchar(255), c varchar(255));
|
||||
--disable_query_log
|
||||
let $i=10000;
|
||||
while ($i) {
|
||||
insert t1 values (repeat(format(rand(),10), 20),
|
||||
repeat(format(rand(),10), 20),
|
||||
repeat(format(rand(),10), 20));
|
||||
dec $i;
|
||||
}
|
||||
--enable_query_log
|
||||
set use_stat_tables=PREFERABLY, optimizer_use_condition_selectivity=3;
|
||||
set debug_dbug='+d,simulate_file_write_error';
|
||||
--replace_regex /'.*'/'tmp-file'/
|
||||
analyze table t1;
|
||||
set debug_dbug='';
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user