[SERVER-81194] getShardVersion should use hasRoutingTable() instead of isSharded() on the router. Created: 19/Sep/23  Updated: 26/Oct/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kshitij Gupta Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: oldshardingemea
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Participants:

 Description   

Currently, if we run `getShardVersion()` on the router, it will return NamespaceNotSharded for a tracked unsharded collection. This is because we assert isSharded() on the ns instead of hasRoutingTable()


Generated at Thu Feb 08 06:45:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.