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

Server selection should not apply to connection checkout

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      The Go Driver should not pass a server selection deadline while checking out a connection at the operation layer, here.

      With the exception of waiting for the wantConn, checking out a connection from the pool does not rely on a context deadline. However, this would cause difficult-to-debug issues if checking out a connection ever strictly relied on a context deadline, such as reading pending messages in the foreground as proposed in DRIVERS-2884.

      Definition of done

      Only use the wrapped context while selecting a server. Use the user-defined context (function parameter) for checking out a connection.

      Pitfalls

      NA

            Assignee:
            Unassigned Unassigned
            Reporter:
            preston.vasquez@mongodb.com Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: