Skip to content

Fix race condition in DCR client creation for concurrent requests#177

Open
luis5tb wants to merge 1 commit intoRHEcosystemAppEng:mainfrom
luis5tb:concurrent-safety
Open

Fix race condition in DCR client creation for concurrent requests#177
luis5tb wants to merge 1 commit intoRHEcosystemAppEng:mainfrom
luis5tb:concurrent-safety

Conversation

@luis5tb
Copy link
Copy Markdown
Collaborator

@luis5tb luis5tb commented Apr 29, 2026

Handle IntegrityError when two concurrent DCR registration requests for the same order_id both pass the existence check and attempt to insert. The loser now returns the winner's record instead of crashing.

Handle IntegrityError when two concurrent DCR registration requests
for the same order_id both pass the existence check and attempt to
insert. The loser now returns the winner's record instead of crashing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant