Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81194

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

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

      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@mongodb.com Pierlauro Sciarelli
            Reporter:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: