-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix-ppaf-enablement #36090
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
base: main
Are you sure you want to change the base?
fix-ppaf-enablement #36090
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.
Pull Request Overview
This PR fixes the default value of PPAF (Partition-level Failover) flags by moving the partition-level failover configuration from the connection policy to the global endpoint manager. The change ensures that partition-level failover is enabled by default as intended.
Key Changes
- Removed
enablePartitionLevelFailover
parameter from TimeoutFailoverRetryPolicy constructor - Updated all references to access partition-level failover settings through
globalEndpointManager
instead ofconnectionPolicy
- Removed automatic PPAF feature flag tracking from user agent since it's now enabled by default
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
timeoutFailoverRetryPolicy.ts | Removed enablePartitionLevelFailover parameter and updated condition to use globalEndpointManager |
retryUtility.ts | Removed enablePartitionLevelFailover parameter from TimeoutFailoverRetryPolicy constructor call |
RequestHandler.ts | Updated partition-level failover checks to use globalEndpointManager instead of connectionPolicy |
globalEndpointManager.ts | Removed refreshPPAFFeatureFlag call since PPAF is now enabled by default |
platform.ts | Removed automatic PPAF feature flag tracking from user agent and added TODO comment |
ClientContext.ts | Updated isPartitionLevelFailOverEnabled method to check globalEndpointManager instead of connectionPolicy |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
LGTM. |
Packages impacted by this PR
@azure/cosmos
Issues associated with this PR
#35967
Describe the problem that is addressed by this PR
This PR is follow up of #35954 for fixing the default value of ppaf flags.
This PR makes the following changes:
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
N/A
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists