Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
743 stars 495 forks source link

PartitionKeyRangeHandler does not honor splits #1935

Open bchong95 opened 4 years ago

bchong95 commented 4 years ago

Describe the bug PartitionKeyRangeHandler does return a split exception when given an epk range that spans more than one physical partition. Instead it just sends the request to the left most partition in the list of overlapping ranges. The reason for this is because it uses TryGetTargetRangeFromContinuationTokenRangeAsync which will only get the target range.

kirankumarkolli commented 3 years ago

@FabianMeiswinkel what are the next steps?

What scenarios are impacted?

kirankumarkolli commented 3 years ago

One more to consider here is CT abstraction relationship as well.