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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Emily Stolfo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: