Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3673

Update connection pinning logic for LB mode

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.13.0
    • Connectivity
    • None

    Description

      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.

      Attachments

        Activity

          People

            dmitry.lukyanov@mongodb.com Dmitry Lukyanov
            esha.bhargava@mongodb.com Esha Bhargava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: