Skip to content
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

Fix race condition for zip upload #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

j-rf
Copy link

@j-rf j-rf commented Nov 28, 2022

Put operation is not atomic, leading to a race condition when writing a pex file.
Switching to a put to temporary folder and move operation.

j-rf added 2 commits November 28, 2022 17:09
- check destination before upload, rm destination if force upload, throw if discrepancy
- use atomic put operation for upload_zip
- if race condition is met, check destination vs source, throw only if there is a discrepancy
@j-rf j-rf requested review from fhoering and mtchib November 29, 2022 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant