[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() |