noobaa-core icon indicating copy to clipboard operation
noobaa-core copied to clipboard

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

Open jeniawhite opened this issue 6 years ago • 1 comments

Environment info

  • Version: VERSION
  • Deployment: AZURE | AWS | GCLOUD | ESX | VBOX | DEV
  • Customer: NAME

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

Screenshots or Logs or other output that would be helpful

jeniawhite avatar Oct 03 '18 17:10 jeniawhite