noobaa / noobaa-core

High-performance S3 application gateway to any backend - file / s3-compatible / multi-clouds / caching / replication ...
https://www.noobaa.io
Apache License 2.0
269 stars 78 forks source link

Race conditions in versioning marking operations of objects (query vs bulks) #5139

Open jeniawhite opened 6 years ago

jeniawhite commented 6 years ago

Environment info

Actual behavior

  1. In all cases when we need to manipulate and assign the latest value regarding versioning flows we have a race condition. Notice that we perform queries prior to the bulk that handles the switch of the latest flag for objects. Those queries can be obsolete in case of changes in parallel after the queries and prior to the bulk updates. Which means that we do not actually query and change in a bulk and do that separately.

Expected behavior

  1. We should be able to handle this by locks or bulks that include the query as well

Steps to reproduce

1.

Screenshots or Logs or other output that would be helpful

github-actions[bot] commented 4 days ago

This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.