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

Add guardrails for UniqueViolation caused by parallel requests #592

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

yashvardhannanavati
Copy link
Collaborator

Sometime, when multiple requests are submitted with the same parameters, it can cause a UniqueViolation in the database. Example, when requests A and B started, a value wasn't present so they both decide to add a value X. A's addition is successful while when B tries to add it, a UniqueViolation is triggered since A already added it.

Refers to CLOUDDST-20863

Sometime, when multiple requests are submitted with the same
parameters, it can cause a UniqueViolation in the database.
Example, when requests A and B started, a value wasn't present so they
both decide to add a value X. A's addition is successful while when
B tries to add it, a UniqueViolation is triggered since A already
added it.

Refers to CLOUDDST-20863
@yashvardhannanavati yashvardhannanavati merged commit c6dd3ff into master Nov 28, 2023
2 checks passed
@yashvardhannanavati yashvardhannanavati deleted the merge_index_ocp branch November 28, 2023 18:55
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.

4 participants