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

database: Fix error code check in LockClient.TryAcquireLock #681

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

mbarnes
Copy link
Collaborator

@mbarnes mbarnes commented Oct 2, 2024

What this PR does

Already found a boo boo in database.LockClient...

When attempting to create an item with an ID that already exists, Cosmos responds with 409 Conflict not 412 Precondition Failed.

Jira: Additional testing of ARO-10822 - Add concurrency controls around Cosmos DB
Link to demo recording:

Special notes for your reviewer

@mbarnes mbarnes force-pushed the lock-client-fix-error-code branch from 96b94e3 to 15ced81 Compare October 2, 2024 05:56
When attempting to create an item with an ID that already exists,
Cosmos responds with 409 Conflict not 412 Precondition Failed.
@mbarnes mbarnes force-pushed the lock-client-fix-error-code branch from 15ced81 to fd43c50 Compare October 2, 2024 12:05
@mjlshen mjlshen enabled auto-merge (rebase) October 2, 2024 17:35
@mjlshen mjlshen merged commit b378015 into main Oct 2, 2024
23 checks passed
@mjlshen mjlshen deleted the lock-client-fix-error-code branch October 2, 2024 17:36
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.

2 participants