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

Improve guidance around connection pinning on error in cursors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • Load Balancer
    • None
    • Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: