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

DocumentClient: Fixes ObjectDisposedException during Background Refresh by adding Cancellation Token #3278

Merged
merged 9 commits into from
Jun 21, 2022

Conversation

imanvt
Copy link
Contributor

@imanvt imanvt commented Jun 20, 2022

Pull Request Template

Description

Adds a cancellation token into DocumentClient that cancels upon disposal. This removes the ObjectDisposedException that gets traced if a CosmosClient is quickly disposed after initialization.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

closes #3259 and closes #2619

@imanvt imanvt marked this pull request as ready for review June 20, 2022 23:11
@imanvt imanvt marked this pull request as draft June 20, 2022 23:38
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM

@imanvt imanvt marked this pull request as ready for review June 21, 2022 18:22
@imanvt imanvt requested a review from ealsur June 21, 2022 18:22
@ealsur ealsur merged commit 3cee883 into master Jun 21, 2022
@ealsur ealsur deleted the users/imanvt/3259-cosmosclient-objectdisposed branch June 21, 2022 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants