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

CrossRegionHedging: Fixes NullReference Exception Bug #4869

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

dibahlfi
Copy link

@dibahlfi dibahlfi commented Nov 5, 2024

Pull Request Template

Description

This change is to fix CosmosNullReferenceException that happens when a client passes a CancellationToken along with the request. Please see(#4737) for more information.

Type of change

Please delete options that are not relevant.

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

Closing issues

To automatically close an issue: closes #4737

@dibahlfi dibahlfi added auto-merge Enables automation to merge PRs Hedging Any issue/feature request related to request hedging labels Nov 5, 2024
@dibahlfi dibahlfi self-assigned this Nov 5, 2024
kundadebdatta
kundadebdatta previously approved these changes Nov 5, 2024
Copy link
Member

@kundadebdatta kundadebdatta left a comment

Choose a reason for hiding this comment

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

One minor comment. Otherwise, LGTM.

Copy link
Contributor

@NaluTripician NaluTripician left a comment

Choose a reason for hiding this comment

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

A few nits other than that LGTM. Good work, thanks!

@sourabh1007
Copy link
Contributor

We are changing the behavior here, previously if operation was cancelled due to cancellation token, it used to return a valid HedgingResponse, now we are returning exception. Is this expected?

Copy link
Contributor

@NaluTripician NaluTripician 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!

@NaluTripician NaluTripician changed the title CrossRegionHedging: Fixes NullReference Bug CrossRegionHedging: Fixes NullReference Exception Bug Nov 25, 2024
@dibahlfi
Copy link
Author

dibahlfi commented Dec 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Enables automation to merge PRs Hedging Any issue/feature request related to request hedging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]:CosmosNullReferenceException when hedging enabled and client called with cancelled cancellation token
6 participants