-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guardrails for UniqueViolation caused by parallel requests
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
- Loading branch information
1 parent
070da38
commit c6dd3ff
Showing
1 changed file
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters