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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing

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

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            kshitij.gupta@mongodb.com Kshitij Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: