-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be resilient against parallel directory creations. #75
Conversation
Failures in Travis are unrelated (minio does not start) |
Fixed the problem with minio on master. |
fe5d0c2
to
54f7e05
Compare
Rebased and Travis is happy. The decrease in coverage seems to be down to the Azure tests being skipped, this should be irrelevant for this branch. |
a8d2584
to
098daec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog entry, else it looks good 👍
When using multiprocessing, simultaneous writes can lead to the situation where both code paths first check if the directory exists and create it in the negative case. As check and creation aren't a single atomic operation, one of them might fail.
839292d
to
3d9f53d
Compare
Rebased and added changelog entry. |
When using multiprocessing, simultaneous writes can lead to the
situation where both code paths first check if the directory exists and
create it in the negative case. As check and creation aren't a single
atomic operation, one of them might fail.