Skip to content

Draft: Add test to showcase problem with nested transaction and get or create

Paolo requested to merge independent-related into master

Added a file that shows a problem when using get_or_create within a nested independent transaction.

Not sure exactly what is causing this, but It has to do with the fact get_or_create uses django atomic decorator.

Interestingly this fails locally only, running the test against the remote datastore, both in optimistic and pessimistic concurrency mode works fine.

Edited by Paolo

Merge request reports