mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
e709eb9bf7
# Conflicts: # mysql-test/suite/galera/r/MW-388.result # mysql-test/suite/galera/t/MW-388.test # mysql-test/suite/innodb/r/truncate_inject.result # mysql-test/suite/innodb/t/truncate_inject.test # mysql-test/suite/rpl/r/rpl_stop_slave.result # mysql-test/suite/rpl/t/rpl_stop_slave.test # sql/sp_head.cc # sql/sp_head.h # sql/sql_lex.cc # sql/sql_yacc.yy # storage/xtradb/buf/buf0dblwr.cc
25 lines
809 B
Text
25 lines
809 B
Text
#
|
|
# 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 @saved_dbug = @@SESSION.debug_dbug;
|
|
SET debug_dbug='+d,simulate_file_write_error';
|
|
set @@max_heap_table_size=128*1024;
|
|
--replace_regex /'.*'/'tmp-file'/
|
|
analyze table t1;
|
|
SET debug_dbug= @saved_dbug;
|
|
drop table t1;
|