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

[Hotfix] CrossRegionHedging: Fixes NullReference Exception Bug #4956

Conversation

kundadebdatta
Copy link
Member

Pull Request Template

Description

This PR cherry-picks the following commits:

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #IssueNumber

NaluTripician and others added 2 commits January 9, 2025 01:22
# Pull Request Template

## Description

Adds support to use hedging on write requests for multimaster accounts.
Note that this does come with the caveat that there will be more 409
errors thrown by the SDK. This is expected and applications that adapt
this feature should be prepared to handle these exceptions.

This feature will also be an opt in feature for Availability Strategies
and users will need to especially specify that in the availability
strategy definition.

```
ItemRequestOptions requestOptions = new ItemRequestOptions
{
    AvailabilityStrategy = new CrossRegionHedgingAvailabilityStrategy(
        threshold: TimeSpan.FromMilliseconds(100),
        thresholdStep: TimeSpan.FromMilliseconds(50),
        multiMasterWritesEnabled: true)
};
```

## Type of change

Please delete options that are not relevant.

- [] New feature (non-breaking change which adds functionality)

## Closing issues

To automatically close an issue: closes #4457

---------

Co-authored-by: Fabian Meiswinkel <[email protected]>
Co-authored-by: Kevin Pilch <[email protected]>
# 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

---------

Co-authored-by: Arooshi Avasthy <[email protected]>
Co-authored-by: Kiran Kumar Kolli <[email protected]>
Co-authored-by: Nalu Tripician <[email protected]>
@kundadebdatta kundadebdatta marked this pull request as ready for review January 8, 2025 20:00
@kundadebdatta kundadebdatta self-assigned this Jan 8, 2025
@kundadebdatta kundadebdatta added the auto-merge Enables automation to merge PRs label Jan 8, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot enabled auto-merge (squash) January 8, 2025 20:08
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit ee83a58 into releases/3.46.1 Jan 8, 2025
25 of 26 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the users/kundadebdatta/hotfix/3.46.1_more branch January 8, 2025 20:30
NaluTripician added a commit that referenced this pull request Jan 8, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants