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

Remove timeout check from server selection fast path

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: Server Selection
    • None

      In GODRIVER-1404, we introduced a server selection fast path that attempts to select a server once. If the initial selection fails, we call Subscribe and wait for new updates. The fast path still checks for ctx.Done and server selection timeout. We can remove this check because the fast path is arguably non-blocking and if the context has expired, it'll either be checked in the Subscribe path if initial selection fails or in WriteWireMessage before we send the command to the server. This basically makes it so we always attempt server selection once, regardless of the context/timeout.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: