noobaa-core
noobaa-core copied to clipboard
Race conditions in versioning marking operations of objects (query vs bulks)
Environment info
- Version: VERSION
- Deployment: AZURE | AWS | GCLOUD | ESX | VBOX | DEV
- Customer: NAME
Actual behavior
- 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
- We should be able to handle this by locks or bulks that include the query as well