MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/share/mysql-test/r/partition_open_files_limit.result
CALL mtr.add_suppression("innodb_open_files should not be greater than the open_files_limit.");
CALL mtr.add_suppression("Warning: you must raise the value of ");
CALL mtr.add_suppression("  InnoDB: Warning: too many (.*) files stay open");
CALL mtr.add_suppression(" while the maximum");
CALL mtr.add_suppression("InnoDB: allowed value would be 1.");
CALL mtr.add_suppression("InnoDB: You may need to raise the value of");
CALL mtr.add_suppression(" innodb_open_files in");
CALL mtr.add_suppression("InnoDB: my.cnf.");
DROP TABLE IF EXISTS `t1`;
# Bug#46922: crash when adding partitions and open_files_limit is reached
CREATE TABLE t1 (a INT PRIMARY KEY) 
ENGINE=MyISAM PARTITION BY KEY () PARTITIONS 1;
INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
# if the bug exists, then crash will happen here
ALTER TABLE t1 ADD PARTITION PARTITIONS 600;
ERROR HY000: Out of resources when opening file '<partition file>' (Errcode: 24 - Too many open files)
SELECT * FROM t1;
a
1
10
11
2
3
4
5
6
7
8
9
DROP TABLE t1;