google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Avoid simultaneous read-modify-write race condition in Python

Open tchristensenowlet opened this issue 8 years ago • 1 comments

In the cloud storage documentation, there is an example of how to avoid simultaneous read-modify-write race conditions using the JSON API. https://cloud.google.com/storage/docs/generations-preconditions#examples_of_race_conditions

Since we are encouraged to use one of the client libraries instead of the JSON API, how do we replicate this functionality in Python?

tchristensenowlet avatar Sep 06 '18 21:09 tchristensenowlet

See #4490. Supporting generations / metagenerations and the corresponding precondition headers is on the list of GCS features being prioritized, but we don't have a concrete timeframe.

/cc @frankyn

tseaver avatar Sep 06 '18 21:09 tseaver