Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
N/A
Description
Start (any) repeated test in MTR (using parallel=1), for example main/create.test:
/test/MD180921-mariadb-10.7.0-linux-x86_64-dbg/mysql-test$ ./mysql-test-run --repeat=99999 --parallel=1 --mem --force --retry=99999 --retry-failure=99999 --suite=main create | tee long_run.txt
|
Or you can use /dev/shm (same outcome):
MTR_MEM=/dev/shm ./mysql-test-run --repeat=99999 --parallel=1 --mem --force --retry=99999 --retry-failure=99999 --suite=main create | tee long_run.txt
|
And it will quickly (20 to 500 testcase runs) fail with:
10.7.0 d552e092c9f3e20da078d1b62b976f629f73d3a4 (Debug) |
...
|
main.create [ 13 pass ] 5546
|
main.create [ 14 pass ] 5549
|
main.create [ 15 pass ] 5580
|
main.create [ 16 pass ] 5755
|
========================================
|
mkdir failed
|
err: 'File exists'
|
path: '/test/MD180921-mariadb-10.7.0-linux-x86_64-dbg/mysql-test/var'
|
dir: 'var'
|
...
|
Issue pops up frequently around 15-30 repeats. Seems like a (sporadic) race condition.