Skip to content

[Internal] HPK: Fixes EPK Normalization problem of Hierarchical Partition Keys by consuming new Range Comparators #5260

Merged
kirankumarkolli merged 2 commits into
masterfrom
ananth/5159-hpk-normalization
Nov 13, 2025
Merged

[Internal] HPK: Fixes EPK Normalization problem of Hierarchical Partition Keys by consuming new Range Comparators #5260
kirankumarkolli merged 2 commits into
masterfrom
ananth/5159-hpk-normalization

Setting default value in GA to False and default value in Preview to …

9b22a5d
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci succeeded Nov 13, 2025 in 1h 15m 14s

Build #20251113.17 had test failures

Details

Tests

  • Failed: 2 (0.02%)
  • Passed: 8,335 (99.06%)
  • Other: 77 (0.92%)
  • Total: 8,414
Code coverage

  • 53475 of 95962 line covered (55.73%)

Annotations

Check failure on line 1263 in Build log

See this annotation in the file changed.

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

Build log #L1263

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

Check failure on line 1268 in Build log

See this annotation in the file changed.

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

Build log #L1268

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

See this annotation in the file changed.

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

Build log #L1449

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

Check failure on line 1454 in Build log

See this annotation in the file changed.

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

Build log #L1454

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.CreateItemsTestWithThinClientFlagEnabledAndAccountDisabled

See this annotation in the file changed.

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

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.CreateItemsTestWithThinClientFlagEnabledAndAccountDisabled

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CosmosItemThinClientTests.CreateItemsTestWithThinClientFlagEnabledAndAccountDisabled threw exception: 
System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (127.0.0.1:8081) ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.
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 278
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Routing\GlobalEndpointManager.cs:line 196
   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 153
   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 60
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 6829
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1048
   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.EnsureValidClientAsync(ITrace trace) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\DocumentClient.cs:line 1661
   at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.EnsureValidC