diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-01-16 13:37:21 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-01-16 13:38:50 +0200 |
commit | 80bb7996eccfd0b842fd313be51b8faeed349ee9 (patch) | |
tree | 0c7a2b21ed2fe6f77bd85abeaf6ed7f4ca62ab42 /mysql-test/t | |
parent | 409aba3d997e97287bc67467ef437164c9e70b96 (diff) | |
download | mariadb-git-bb-5.5-vicentiu.tar.gz |
MDEV-21210: main.uniques_crash-7912 tries to allocate 1TB of memorybb-5.5-vicentiu
Update uniques_crash-7912 to only cover 5GB of RAM and also work on
unix.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/uniques_crash-7912.test | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mysql-test/t/uniques_crash-7912.test b/mysql-test/t/uniques_crash-7912.test index 8dc82f8f540..c325a97fd20 100644 --- a/mysql-test/t/uniques_crash-7912.test +++ b/mysql-test/t/uniques_crash-7912.test @@ -1,22 +1,22 @@ -# -# MDEV-7912 -# -# multitable delete with wrongly set sort_buffer_size crashes in merge_buffers +--echo # +--echo # MDEV-7912 +--echo # +--echo # multitable delete with wrongly set sort_buffer_size crashes in merge_buffers +--echo # --source include/have_innodb.inc ---source include/have_debug.inc ---source include/windows.inc call mtr.add_suppression("Out of memory"); -set sql_mode=""; ---disable_warnings -drop table if exists t1,t2; create table `t1` (`a` datetime not null) engine=InnoDB; -create table `t2` (`a` int not null) engine=innodb; +create table `t2` (`a` int not null) engine=InnoDB; +--disable_warnings replace into t1 values (),(); insert into t2 values(0); -set session sort_buffer_size = 1024*1024*1024*1024; +--echo # +--echo # sort_buffer_size must exceed 4GB to test the crash. +--echo # +set session sort_buffer_size = 1024*1024*1024*5; #Either fail with EE_OUTOFMEMORY, or succeed --error 0 , 5 delete d2 from t2 as d1, t1 as d2 where d1.a <=> d2.a; |