Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4, 11.5(EOL)
Description
The mariadbd instances that are spawned by MTR have their RLIMIT_NOFILE hardcoded to 1024. This makes MTR unusable if used for high concurrency testing (e.g. for benchmarking).
The hardcoding is set in ./mysql-test/lib/My/SafeProcess/safe_process.cc in its main function:
/*
|
mysqld defaults depend on that. make test results stable and independent
|
from the environment
|
*/
|
setlimit(RLIMIT_NOFILE, 1024, 1024);
|
Instead, the safe process executable should use the test's configuration and use its value for open_files_limit.