Description:
It seems like there's a race condition in mysql-test-run.pl when the --daemonize option is passed in, such that the server datadir is cleared before the server actually finishes exiting.
How to repeat:
Build in release:
Run a few times, and hopefully main.auto_increment will fail.
./mtr --mem main.daemonize_opt main.auto_increment
main.auto_increment w2 [ fail ] Found warnings/errors in server log file!
Test ended at 2018-07-12 18:18:35
line
2018-07-13T01:18:34.643068Z 0 [ERROR] [MY-012592] [InnoDB] InnoDB: Operating system error number 2 in a file operation.
2018-07-13T01:18:34.643089Z 0 [ERROR] [MY-012593] [InnoDB] InnoDB: The error means the system cannot find the path specified.
2018-07-13T01:18:34.643098Z 0 [Warning] [MY-012093] [InnoDB] InnoDB: Cannot open './sys/sys_config.ibd'. Have you deleted .ibd files under a running mysqld server?
^ Found warnings in /mysql-test/var/2/log/mysqld.1.err
ok
Suggested fix:
Not sure.
Description: It seems like there's a race condition in mysql-test-run.pl when the --daemonize option is passed in, such that the server datadir is cleared before the server actually finishes exiting. How to repeat: Build in release: Run a few times, and hopefully main.auto_increment will fail. ./mtr --mem main.daemonize_opt main.auto_increment main.auto_increment w2 [ fail ] Found warnings/errors in server log file! Test ended at 2018-07-12 18:18:35 line 2018-07-13T01:18:34.643068Z 0 [ERROR] [MY-012592] [InnoDB] InnoDB: Operating system error number 2 in a file operation. 2018-07-13T01:18:34.643089Z 0 [ERROR] [MY-012593] [InnoDB] InnoDB: The error means the system cannot find the path specified. 2018-07-13T01:18:34.643098Z 0 [Warning] [MY-012093] [InnoDB] InnoDB: Cannot open './sys/sys_config.ibd'. Have you deleted .ibd files under a running mysqld server? ^ Found warnings in /mysql-test/var/2/log/mysqld.1.err ok Suggested fix: Not sure.