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

Pinned Servers should be cleared properly

    XMLWordPrintable

    Details

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

      Description

      Operations that use a pinned server don't properly clear the pinned server for retries because the pinned server is added directly to the driver.Operation. In order to fix this, we need to wrap the server selector in another server selector that will attempt to use a session's pinned server when server selection is taking place. An example of the fixed code can be found here: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/457635/6/mongo/session.go#192

        Attachments

          Activity

            People

            Assignee:
            manny.eppinger Emmanuel Eppinger (Inactive)
            Reporter:
            kris.brandow Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: