-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVPROD-12040: Add conditional writes to s3.put
This commit updates s3.put to support S3's new conditional writes feature. The conditional writes feature guarantees that a write will not succeed if the remote key already exists. This check respects s3's strong read-after-write data model. In order to enable this feature, I updated to the latest version of pail. This required bumping the minimum go version of this project to 1.21. While adding this feature, I realized that the existing skip_existing implementation is buggy and has not been working correctly because of the final check we do for updatedFiles equaling fileList. This commit also fixes that bug.
- Loading branch information
Showing
7 changed files
with
181 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.