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

Thread-Safe clientRetryPolicy #23061

Merged
merged 13 commits into from
Jun 14, 2024
Merged

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Jun 13, 2024

clientRetryPolicy was storing state that was being shared across all requests, this caused race conditions and went against the Policy best practices.

This PR extracts the retry context into a property of the request itself.

Adding a concurrent test to enable race detection.

Closes #23052

@ealsur ealsur marked this pull request as ready for review June 13, 2024 23:31
@ealsur ealsur merged commit ce86693 into Azure:main Jun 14, 2024
21 checks passed
@ealsur ealsur deleted the users/ealsur/retrycontext branch June 14, 2024 14:04
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.

CosmosDB (*ContainerClient).ReadItem() not thread safe (any longer)
3 participants