Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle race conditions during parallel instance inserts in the same study #1491

Merged
merged 5 commits into from
Apr 9, 2022

Conversation

smithago
Copy link
Contributor

@smithago smithago commented Apr 7, 2022

Description

We are holding a UPDLOCK on study which still allows inserts. Parallel new instance inserts in a study can result in dupe key on studyInstanceUID. Holding a SERIALIZATION lock is correct but results in slow instance inserts and deadLocks on rangelock.

Related issues

AB#90184

Testing

Added new integration test.
Manually tests

@smithago smithago requested a review from wsugarman April 7, 2022 20:58
@smithago smithago marked this pull request as ready for review April 9, 2022 01:14
@smithago smithago requested a review from a team as a code owner April 9, 2022 01:14
@smithago smithago merged commit 1825a86 into main Apr 9, 2022
@smithago smithago deleted the personsal/smithasa/parallel-insert branch April 9, 2022 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants