Skip to content

HA: Fixes CrossRegion retry also on RequestTimeout from addressRefresh [DO-NOT-MERGE] #4962

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

Closed
wants to merge 2 commits into from

stylecop fix

782bba4
Select commit
Loading
Failed to load commit list.
Closed

HA: Fixes CrossRegion retry also on RequestTimeout from addressRefresh [DO-NOT-MERGE] #4962

stylecop fix
782bba4
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci failed Jan 11, 2025 in 1h 6m 37s

Build #20250111.2 had test failures

Details

Tests

  • Failed: 4 (0.05%)
  • Passed: 7,831 (99.04%)
  • Other: 72 (0.91%)
  • Total: 7,907

Annotations

Check failure on line 1308 in Build log

See this annotation in the file changed.

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

Build log #L1308

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

Check failure on line 1313 in Build log

See this annotation in the file changed.

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

Build log #L1313

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

Check failure on line 3558 in Build log

See this annotation in the file changed.

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

Build log #L3558

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

Check failure on line 3563 in Build log

See this annotation in the file changed.

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

Build log #L3563

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

Check failure on line 1 in Microsoft.Azure.Cosmos.Tests.CosmosBadReplicaTests.TestGoneFromServiceScenarioAsync

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.Tests.CosmosBadReplicaTests.TestGoneFromServiceScenarioAsync

Assert.AreEqual failed. Expected:<4>. Actual:<3>. 
Raw output
   at Microsoft.Azure.Cosmos.Tests.CosmosBadReplicaTests.TestGoneFromServiceScenarioAsync(Boolean enableReplicaValidation, Boolean useEnvironmentVariable, Boolean useCosmosClientOptions) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.Tests\CosmosBadReplicaTests.cs:line 209
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)

Check failure on line 1 in Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

Test method Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync threw exception: 
Moq.MockException: TransportClient.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.
Raw output
    at Moq.FindAndExecuteMatchingSetup.Handle(Invocation invocation, Mock mock)
   at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.TransportClientProxy.Dispose()
   at Microsoft.Azure.Documents.StoreClientFactory.Dispose()
   at Microsoft.Azure.Cosmos.DocumentClient.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1373
   at Microsoft.Azure.Cosmos.ClientContextCore.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 490
   at Microsoft.Azure.Cosmos.CosmosClient.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\CosmosClient.cs:line 1479
   at Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.Tests\PartitionKeyRangeFailoverTests\GlobalPartitionEndpointManagerTests.cs:line 354

Check failure on line 1 in Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

Test method Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync threw exception: 
Moq.MockException: TransportClient.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.
Raw output
    at Moq.FindAndExecuteMatchingSetup.Handle(Invocation invocation, Mock mock)
   at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.TransportClientProxy.Dispose()
   at Microsoft.Azure.Documents.StoreClientFactory.Dispose()
   at Microsoft.Azure.Cosmos.DocumentClient.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1320
   at Microsoft.Azure.Cosmos.ClientContextCore.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 485
   at Microsoft.Azure.Cosmos.ClientContextCore.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 471
   at Microsoft.Azure.Cosmos.CosmosClient.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\CosmosClient.cs:line 1476
   at Microsoft.Azure.Cosmos.CosmosClient.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\CosmosClient.cs:line 1454
   at Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.Tests\PartitionKeyRangeFailoverTests\GlobalPartitionEndpointManagerTests.cs:line 354

Check failure on line 1 in Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync

Test method Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync threw exception: 
Moq.MockException: TransportClient.Dispose() invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.
Raw output
    at Moq.FindAndExecuteMatchingSetup.Handle(Invocation invocation, Mock mock)
   at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.TransportClientProxy.Dispose()
   at Microsoft.Azure.Documents.StoreClientFactory.Dispose()
   at Microsoft.Azure.Cosmos.DocumentClient.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1320
   at Microsoft.Azure.Cosmos.ClientContextCore.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 485
   at Microsoft.Azure.Cosmos.ClientContextCore.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 471
   at Microsoft.Azure.Cosmos.CosmosClient.Dispose(Boolean disposing) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\CosmosClient.cs:line 1476
   at Microsoft.Azure.Cosmos.CosmosClient.Dispose() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\CosmosClient.cs:line 1454
   at Microsoft.Azure.Cosmos.Tests.GlobalPartitionEndpointManagerTests.TestRequestTimeoutExceptionScenarioAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.Tests\PartitionKeyRangeFailoverTests\GlobalPartitionEndpointManagerTests.cs:line 354