-
Notifications
You must be signed in to change notification settings - Fork 822
blob: introduce conditional write option for storage #3533
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
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
cae6693
to
49d8bce
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.
Can you add a drivertest that exercises this new feature?
It'll be tricky for you to verify on GCP/Azure/AWS, but you should be able to get it working with memblob and fileblob. Once you've done that, you can comment it out, we can get this merged, and then I can generate the goldens for the GCP/Azure/AWS packages.
d2fdaeb
to
4114b43
Compare
8e5a572
to
69616e7
Compare
Thanks @vangent for the quick feedback. I have provided the implementation for the Following your suggestion, I ran the tests for the Let me know if there is anything else that needs to be fixed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3533 +/- ##
==========================================
- Coverage 70.55% 70.47% -0.09%
==========================================
Files 113 113
Lines 14347 14382 +35
==========================================
+ Hits 10123 10135 +12
- Misses 3497 3515 +18
- Partials 727 732 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
69616e7
to
6d9598f
Compare
This commit introduces support for conditional writes. It does so my adding a new write options: IfNotExist. When set to true, conditions are set for each driver to enable the desired behavior.
6d9598f
to
2b8057c
Compare
For future reference, please don't rebase/force-push. It makes it so I have to review the whole PR again every time rather than just the commits/changes since my last review. |
Thanks for the contribution! |
This commit introduces support for conditional writes for major cloud providers: aws, gcp, azure.
It does so by adding a new write options:
IfNotExist
.When set to true, conditions are set for each cloud storage driver to enable the desired behavior.
Addresses #3518