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

Make "pool.clear()" behavior match CMAP specification

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The Clearing a Connection Pool section of the CMAP specification describes that:

      As part of clearing the pool, the WaitQueue MUST also be cleared, meaning all requests in the WaitQueue MUST fail with errors indicating that the pool was cleared while the checkOut was being performed.

      Currently the Go driver pool.clear() function does not empty the WaitQueue and only increments the latest generation number. Update it to also clear the WaitQueue.

      Definition of done:

      • pool.clear() clears the WaitQueue and returns retryable error code to all waiting checkOut() callers.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: