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

Update connection pinning logic for LB mode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The rules for connection pinning in LB mode have changed. For cursors:

      1. No pinning if the cursor ID is 0 (i.e. all results are returned in a single batch)
      2. Unpin once the cursor ID returned from getMore is 0 (i.e. the cursor has been drained)
      3. Unpin once the cursor is closed.

      For transactions, the rules will be the same as those for pinning sessions to servers in non-LB sharded transactions.

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

              Created:
              Updated:
              Resolved: