Skip to content

Diagnostics: Removes Unnecessary APIs From Public Contract - #5919

Merged
Meghana Palaparthi (Meghana-Palaparthi) merged 4 commits into
mainfrom
users/kundadebdatta/fix_requested_regions_contract
Jun 2, 2026
Merged

Diagnostics: Removes Unnecessary APIs From Public Contract#5919
Meghana Palaparthi (Meghana-Palaparthi) merged 4 commits into
mainfrom
users/kundadebdatta/fix_requested_regions_contract

Update RequestedRegionTests.cs

831499b
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci succeeded Jun 2, 2026 in 1h 12m 9s

Build #20260602.8 had test failures

Details

Tests

  • Failed: 32 (0.31%)
  • Passed: 10,148 (98.81%)
  • Other: 90 (0.88%)
  • Total: 10,270
Code coverage

  • 55930 of 98602 line covered (56.72%)

Annotations

Check failure on line 2398 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2398

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 2403 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2403

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\_work\\1\\s\\Microsoft.Azure.Cosmos\\tests\\Microsoft.Azure.Cosmos.EmulatorTests\\Microsoft.Azure.Cosmos.EmulatorTests.csproj'
]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.CreateItemStreamTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.CreateItemStreamTest

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6890
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1140
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.Get
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.QueryItemsTest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.QueryItemsTest

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6890
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1140
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.Get
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientWithExecuteStoredProcedureAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientWithExecuteStoredProcedureAsync

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 279
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 154
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 105
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 62
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6885
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1070
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 103
   at Microsoft.Azure.Cosmos.DocumentClient.EnsureValidC
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientQueryPlanCrossPartitionWithFilter

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestThinClientQueryPlanCrossPartitionWithFilter

Initialization method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.TestInitAsync threw exception. System.Net.Http.HttpRequestException: No such host is known. (newthinclienttestpipelinesession.documents.azure.com:443) ---> System.Net.Sockets.SocketException: No such host is known..
Raw output
    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
    at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetOnlyGlobalEndpointAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 283
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 197
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountFromAnyLocationsAsync(Uri defaultEndpoint, IList`1 locations, IList`1 accountInitializationCustomEndpoints, Func`2 getDatabaseAccountFn, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 156
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\GatewayAccountReader.cs:line 113
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\Settings\CosmosAccountServiceConfiguration.cs:line 64
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6890
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1140
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`1 preRetryCallback)
   at Microsoft.Azure.Cosmos.AsyncCacheNonBlocking`2.GetAsync(TKey key, Func`2 singleValueInitFunc, Func`2 forceRefresh) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\AsyncCacheNonBlocking.cs:line 185
   at Microsoft.Azure.Cosmos.DocumentClient.EnsureValidC
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]