[MDEV-26705] MTR Easily fails with 'File exists' on multiple runs of the same (any) testcase when using --mem Created: 2021-09-28 Updated: 2021-09-28 Resolved: 2021-09-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Roel Van de Paar |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | affects-tests | ||
| Description |
|
Start (any) repeated test in MTR (using parallel=1), for example main/create.test:
Or you can use /dev/shm (same outcome):
And it will quickly (20 to 500 testcase runs) fail with:
Issue pops up frequently around 15-30 repeats. Seems like a (sporadic) race condition. |
| Comments |
| Comment by Marko Mäkelä [ 2021-09-28 ] | ||||||||||||||
|
I believe that the claim "any testcase" is exaggerated. Just recently, related to That said, there are (too) many tests that fail when run repeatedly. Mostly they should be outside the InnoDB test suites. | ||||||||||||||
| Comment by Roel Van de Paar [ 2021-09-28 ] | ||||||||||||||
|
marko On further checking, I found the issue only appears when using --mem. Thanks | ||||||||||||||
| Comment by Roel Van de Paar [ 2021-09-28 ] | ||||||||||||||
|
marko I do not believe that 'any testcase' for this particular MTR issue 'File exists' is exaggerated. For example,
Leads to:
| ||||||||||||||
| Comment by Vladislav Vaintroub [ 2021-09-28 ] | ||||||||||||||
|
I think your Linux got some problems. What would poor assignee do with it? | ||||||||||||||
| Comment by Roel Van de Paar [ 2021-09-28 ] | ||||||||||||||
|
wlad Correct. One of the server monitoring scripts which was cleaning up /dev/shm had a shortcoming to avoid MTR var_... directories. Will fix that one. Thanks. | ||||||||||||||
| Comment by Roel Van de Paar [ 2021-09-28 ] | ||||||||||||||
|
Fixed in tmpfs_cleanup.sh called by disk space monitor (ds). |