Skip to content

[Cosmos] Bugfix for race condition on async lock#34579

Merged
simorenoh merged 4 commits intoAzure:mainfrom
simorenoh:async-lock-hotfix
Mar 2, 2024
Merged

[Cosmos] Bugfix for race condition on async lock#34579
simorenoh merged 4 commits intoAzure:mainfrom
simorenoh:async-lock-hotfix

Conversation

@simorenoh
Copy link
Copy Markdown
Member

@simorenoh simorenoh commented Mar 2, 2024

Seems like a race condition on the async lock used here can be reached with customers with enough load, causing their applications to come to a stop on all requests:
image

making these changes to ensure we can more quickly skip the acquiring of the lock by other processes.

@github-actions github-actions Bot added the Cosmos label Mar 2, 2024
@simorenoh simorenoh changed the title Update _global_endpoint_manager_async.py [Cosmos] Bugfix for race condition on async lock Mar 2, 2024
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

Comment thread sdk/cosmos/azure-cosmos/CHANGELOG.md Outdated
Copy link
Copy Markdown
Member

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@simorenoh simorenoh merged commit 6ec5379 into Azure:main Mar 2, 2024
@simorenoh simorenoh deleted the async-lock-hotfix branch March 2, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants