Skip to content

Commit

Permalink
Upgrade Resiliency: Adds Code to Enable Advanced Replica Selection Fe…
Browse files Browse the repository at this point in the history
…ature for Preview (#4180)

* Code changes to enable replica validation for preview.

* Code changes to enable replica validation for preview and GA.
  • Loading branch information
kundadebdatta authored and kirankumarkolli committed Nov 15, 2023
1 parent 62e5b41 commit 1a3a0d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Microsoft.Azure.Cosmos/src/Util/ConfigurationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public static T GetEnvironmentVariable<T>(string variable, T defaultValue)
public static bool IsReplicaAddressValidationEnabled(
ConnectionPolicy connectionPolicy)
{
bool replicaValidationDefaultValue = false;

if (connectionPolicy != null
&& connectionPolicy.EnableAdvancedReplicaSelectionForTcp.HasValue)
{
Expand All @@ -55,7 +53,7 @@ public static bool IsReplicaAddressValidationEnabled(
return ConfigurationManager
.GetEnvironmentVariable(
variable: ConfigurationManager.ReplicaConnectivityValidationEnabled,
defaultValue: replicaValidationDefaultValue);
defaultValue: true);
}

/// <summary>
Expand Down

0 comments on commit 1a3a0d5

Please sign in to comment.