From 6af1925d155cb628161a67f40b298f79815f9b06 Mon Sep 17 00:00:00 2001 From: bogercraig <124094535+bogercraig@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:56:39 -0800 Subject: [PATCH] Enabling enableEndpointDiscovery to test DE Region Outage Resiliency (#1694) * Setting enableEndpointDiscovery to true to test client resilience during region outage. When this is set to false, it can impact the SDK's failover behavior. --- src/Common/CosmosClient.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 476cd902f..57d250531 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -148,9 +148,6 @@ export function client(): Cosmos.CosmosClient { endpoint: endpoint() || "https://cosmos.azure.com", // CosmosClient gets upset if we pass a bad URL. This should never actually get called key: userContext.masterKey, tokenProvider, - connectionPolicy: { - enableEndpointDiscovery: false, - }, userAgentSuffix: "Azure Portal", defaultHeaders: _defaultHeaders, };