[Internal] Per Partition Automatic Failover: Removes Remove Environment Variable to Set PPAF at the SDK Layer and Add Support for Internal Client Options#5284
Merged
kirankumarkolli merged 9 commits intomasterfrom Jul 17, 2025
Conversation
kirankumarkolli
approved these changes
Jul 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
Remove Dependency on Environment Variable: Today, the PPAF enablement in the .NET SDK is done completely through the Get Account metadata response. However, we still kept the environment variable
AZURE_COSMOS_PARTITION_LEVEL_FAILOVER_ENABLEDat a deprecated state to toggle the behavior, if the cosmos account doesn't have the flag enabled. As a part of this task, we will remove the environment variable completely from the .NET SDK ecosystem.Create a new Environment Variable to externalize circuit breaker timeout counter reset window: Goal is to create a new environment variable
AZURE_COSMOS_PPCB_TIMEOUT_COUNTER_RESET_WINDOW_IN_MINUTESto externalize the PPCB timeout counter reset window. The default value for this would be5minutes.Add New Internal Client Options to disable PPAF: Add a new internal cosmos client options to disable PPAF explicitly. Once set, this will be used to disable PPAF irrespective of the account settings.
Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #5277