Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1184

server selection timeout ReplicaSetNoPrimary, but there is a primary

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.0.3
    • Component/s: Connections
    • Labels:
      None

      My daemon process stopped working unexpectedly.

      Here is the error message returned by the MongoDB driver.

      server selection error: server selection timeout current topology: Type: ReplicaSetNoPrimary Servers: Addr: archive6-3.xxx.com:27506, Type: RSPrimary, State: Connected, Average RTT: 5002238 Addr: archive6-1.xxx.com:27506, Type: RSSecondary, State: Connected, Average RTT: 4990684 Addr: archive6-2.xxx.com:27506, Type: RSSecondary, State: Connected, Average RTT: 5050808 Addr: archive6-arb1.xxx.com:27506, Type: RSArbiter, State: Connected, Average RTT: 4962164 Addr: archive6-arb2.xxx.com:27506, Type: RSArbiter, State: Connected, Average RTT: 848065
      

      The MongoDB client object is no more usable: all MongoDB queries fail with this error.

      The only solution is to restart my process, which creates a new client.

      I don't understand what is the problem:

      • the driver reports that there is no primary
      • all nodes are in "connected" state
      • when I check manually with rs.status(), everything is fine

      Is it possible that the Go MongoDB driver is in a "corrupted" state ?

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            pierrre Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: