Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-828

mongosh fails to connect to replset with unhealthy nodes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.15.1
    • Affects Version/s: None
    • Component/s: Connectivity
    • Not Needed
    • Iteration Edinburgh

      When a replset node is down, and the connection string provided on the command line includes that node, mongosh fails to connect.

      This is a consequence of our fail-fast connect implementation from MONGOSH-705, where ECONNREFUSED|ENOTFOUND|ENETUNREACH are considered failures that should result in aborting the connection attempt.

      Ideally, we should try to identify situations in which all servers we connect to give serverHeartbeatFailed failures, not any of them.

      If that’s impossible, we should only do fail-fast for single-host deployments (although that would reduce the usefulness of MONGOSH-705 quite a bit).

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: