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

Improve error message when ReplicaSetMonitor cannot connect to a replSet node in mongos

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.11
    • Component/s: Sharding
    • Sharding
    • ALL

      When mongos cannot connect to any of the members of a shard replica set for extended periods of time (> 5 minutes), it will remove the ReplicaSetMonitor for that particular set in memory. The consequence is that it will start returning "unknown replica set" error instead of the usual cannot connect to host X.

      Original summary:
      'unknown replica set' error message from mongos during failover
      Original description:

      We had a user report that he got an error from mongos during a failover:

      unknown replica set d303f52f76534680956e00a707bbca89 (71)
      

      This doesn't seem to be an error that should make its way back to the user. Is this possibly a bug in mongos?

      Here is the relevant report from the user.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            emily.stolfo Emily Stolfo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: