Skip to content

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 a review from jcuquemelle November 28, 2022 17:29
@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.

1 participant