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

"Shard not found for server" error when mongos does not use alphanumerical order of hosts in its connect string

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.12, 3.4.2
    • Sharding
    • None
    • Sharding
    • ALL

    Description

      The command execution path uses dbclient_rs and this in turn results in looking up ShardRegistry _lookup map with the connection string returned from ResplicaSetMonitor::getConfirmedServerAddress method that returns the string created form the std::set of node addresses.
      This happens only in the command path. i.e the find() will work but the count() will not as its converted to a command by mongo shell.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: