Skip to content

Code changes to fix failing test.

7851681
Select commit
Loading
Failed to load commit list.
Merged

[Internal] Thin Client Integration: Adds support for Per Partition Automatic Failover and Per Partition Circuit Breaker. #5258

Code changes to fix failing test.
7851681
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci succeeded Jul 17, 2025 in 1h 18m 38s

Build #20250717.5 had test failures

Details

Tests

  • Failed: 15 (0.18%)
  • Passed: 8,222 (98.89%)
  • Other: 77 (0.93%)
  • Total: 8,314
Code coverage

  • 53175 of 95578 line covered (55.64%)

Annotations

Check failure on line 1312 in Build log

See this annotation in the file changed.

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

Build log #L1312

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

Check failure on line 1317 in Build log

See this annotation in the file changed.

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

Build log #L1317

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 1599 in Build log

See this annotation in the file changed.

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

Build log #L1599

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

Check failure on line 1604 in Build log

See this annotation in the file changed.

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

Build log #L1604

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.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.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemStreamTest

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemStreamTest

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemStreamTest threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: Gone (410); Substatus: 0; ActivityId: 20d0604a-ff5c-4e3f-98f8-689a31302af3; Reason: (Unexpected read empty bytes
ActivityId: 20d0604a-ff5c-4e3f-98f8-689a31302af3, Windows/10.0.20348 cosmos-netstandard-sdk/3.39.1);
Raw output
    at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ReadHeaderAndMetadataAsync(Stream stream) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 238
   at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ConvertProxyResponseAsync(HttpResponseMessage responseMessage) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 147
   at Microsoft.Azure.Cosmos.ThinClientStoreClient.InvokeAsync(DocumentServiceRequest request, ResourceType resourceType, Uri physicalAddress, Uri thinClientEndpoint, String globalDatabaseAccountName, ClientCollectionCache clientCollectionCache, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreClient.cs:line 63
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 133
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 133
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 166
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 83

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

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemsTest

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.ReplaceItemsTest threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: Gone (410); Substatus: 0; ActivityId: 4f66d932-64b9-4370-8c08-3bc857097554; Reason: (Unexpected read empty bytes
ActivityId: 4f66d932-64b9-4370-8c08-3bc857097554, Windows/10.0.20348 cosmos-netstandard-sdk/3.39.1);
Raw output
    at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ReadHeaderAndMetadataAsync(Stream stream) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 238
   at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ConvertProxyResponseAsync(HttpResponseMessage responseMessage) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 147
   at Microsoft.Azure.Cosmos.ThinClientStoreClient.InvokeAsync(DocumentServiceRequest request, ResourceType resourceType, Uri physicalAddress, Uri thinClientEndpoint, String globalDatabaseAccountName, ClientCollectionCache clientCollectionCache, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreClient.cs:line 60
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 101
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 123
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 166
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 83

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

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.DeleteItemStreamTest

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.DeleteItemStreamTest threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: Gone (410); Substatus: 0; ActivityId: 3634218c-0b52-4d5e-829e-1553b33e0495; Reason: (Unexpected read empty bytes
ActivityId: 3634218c-0b52-4d5e-829e-1553b33e0495, Windows/10.0.20348 cosmos-netstandard-sdk/3.39.1);
Raw output
    at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ReadHeaderAndMetadataAsync(Stream stream) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 238
   at Microsoft.Azure.Cosmos.ThinClientTransportSerializer.ConvertProxyResponseAsync(HttpResponseMessage responseMessage) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientTransportSerializer.cs:line 147
   at Microsoft.Azure.Cosmos.ThinClientStoreClient.InvokeAsync(DocumentServiceRequest request, ResourceType resourceType, Uri physicalAddress, Uri thinClientEndpoint, String globalDatabaseAccountName, ClientCollectionCache clientCollectionCache, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreClient.cs:line 63
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 133
   at Microsoft.Azure.Cosmos.ThinClientStoreModel.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\ThinClientStoreModel.cs:line 133
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 166
   at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Handler\TransportHandler.cs:line 83