Skip to content

Routing: Validate ResolvedCollectionRid before RID-based collection resolution#5794

Draft
Copilot wants to merge 10 commits intomainfrom
copilot/investigate-5734-repro-emulator
Draft

Routing: Validate ResolvedCollectionRid before RID-based collection resolution#5794
Copilot wants to merge 10 commits intomainfrom
copilot/investigate-5734-repro-emulator

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 20, 2026

  • Add IsCollectionRid defensive check + assignment guard to CollectionCache.ResolveCollectionAsync
  • Expose IsCollectionRid as internal static (removes duplication in emulator tests)
  • Fix CollectionCacheTests to use real Cosmos ResourceIds (ccZ1ANCszwk=) instead of fake RIDs
  • All 3 CollectionCacheTests pass: fallback-to-name-resolution, RID-resolution, assignment-guard-throws
  • 209/209 routing-related unit tests pass (LocationCache, PartitionKeyRange, GatewayAddressCache, ClientRetryPolicy, CollectionRoutingMap)
Original prompt

deep investigate 5734 and run provided repro with emulator and show proff of repro and propose possible fix. Use git workingtrees based on master branch

Created from Copilot CLI via the copilot delegate command.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

Copilot AI and others added 2 commits April 20, 2026 23:58
Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/bc7009ec-e8d3-438c-9a39-fee02fe514ac

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

Copilot AI changed the title [WIP] Investigate issue 5734 and propose a fix Routing: Validate ResolvedCollectionRid before RID-based collection resolution Apr 21, 2026
Copilot AI requested a review from kirankumarkolli April 21, 2026 00:00
…olvedCollectionRid

Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/f5e6a4a1-673b-405a-90d3-cd50e58c7115

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

…d assignment site

Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/0a238bf9-8e50-4a1b-b354-fb1a652c6a15

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

…tionRid

Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/c7d63681-8b7e-48fd-ba4d-cca94d1c546f

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

… emulator test

Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/ae45e8e6-777a-4093-87b6-3a86958850c8

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

…CacheTests

Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/f3fef78e-9b62-42a7-bb0f-b3161bb7a6a7

Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants