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

Disconnect takes a long time on paused Atlas cluster

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.3
    • Component/s: Connections
    • Labels:
      None

      Description

      I think two things are happening
      1. We heartbeat and connect/dial with a background context which takes a long time
      on a paused cluster which doesn't refuse connections immediately.
      2. We only stop doing this based on <-done in a 50/50 chance select two times that
      comes from a disconnect so I think it's very possible to get unlucky for a long time
      over many repeated requests.
      Note: uncomment the code in connection.go that is a single select statement to see
      how disconnect speeds up.

      Attached repro

        Attachments

          Activity

            People

            Assignee:
            eric.daniels Eric Daniels (Inactive)
            Reporter:
            eric.daniels Eric Daniels (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: