getShardVersion should use hasRoutingTable() instead of isSharded() on the router

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-05-13, CAR Team 2024-05-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

              Assignee:
              Pierlauro Sciarelli
              Reporter:
              Kshitij Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: