Overview
| Artifact ID: | d1e2d13d3f13ea66e0995e4848bb293105c10d02911f00aebfbae5a2fb894991 |
|---|---|
| Ticket: | 270f78ca95b642fbed81ed03ad381d64a0d0f7df
file mkdir: race condition if two workers creates same directory and one worker deletes it immediately |
| User & Date: | anonymous on 2018-07-09 11:46:20 |
Changes
- comment changed to:
When running in parallel two terminals doing: 1. while {1} { file mkdir bla } 2. while {1} { file mkdir bla; file delete bla } mkdir eventually fails. On ext4 this is not as bad though it happens (and breaks delete sometimes as well), but on nfs mkdir consistently fails when two process make the same dir. This does not happen using exec mkdir -p bla Related SO question with some tests results of mine: https://stackoverflow.com/questions/48095178/atomicity-of-mkdir - login: "anonymous"
- mimetype: "text/plain"