-
Notifications
You must be signed in to change notification settings - Fork 504
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
[Internal] ClientRetryPolicy: Adds Code to Apply Partition Level Override When a Requested Cancellation Token Expires #5063
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
…n_level_override_on_ct_expiry
this.failoverRetryCount, | ||
this.locationEndpoint?.ToString() ?? string.Empty); | ||
|
||
if (this.isPertitionLevelFailoverEnabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong - we did say that mark down shoudl only ever happen when you have a succesful operation against teh new write region, correct? Otherwise random timeouts could result in marking down the region?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking loud on this part, hedging on two regions when PPAF enabled for writes as alternative?
this.documentServiceRequest); | ||
} | ||
|
||
return ShouldRetryResult.NoRetry(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flow through
Pull Request Template
Description
Background:
During one of the backend drills, it was identified that when the following quorum loss condition is met, and the user provides a cancellation token, SDK honors the token, however doesn't apply the partition level fail over for the offending partition:
Observation:
Fix:
This PR is fixing the above behavior to apply partition level override, when a cancellation token gets expired.
Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #5060