Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1847

Improve guidance around connection pinning on error in cursors

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Load Balancer
    • None
    • Needed

      The load balancer spec currently states:

      If a getMore fails with a network error, drivers MUST leave the connection pinned to the cursor.

      however, we have tests which prove that we also do not unpin on non-network errors. I think the spec language should be changed to state that we should not unpin on any error.

      Additionally, drivers which have lazy cursors (like the Node driver) may need to distinguish pinning rules between cursor initialization and iteration. I suggest an update to state that all errors on initialization should not pin, while errors on getMore should follow the rules above.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: