[CSHARP-3673] Update connection pinning logic for LB mode Created: 17/May/21  Updated: 28/Oct/23  Resolved: 13/Jul/21

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 2.13.0

Type: New Feature Priority: Major - P3
Reporter: Esha Bhargava Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Load Balancer Support
Quarter: FY22Q2

 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.



 Comments   
Comment by Githook User [ 13/Jul/21 ]

Author:

{'name': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3673: Update connection pinning logic for LB mode.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/00de3893603e048e89f9b618b9e53d20f412dde9

Generated at Wed Feb 07 21:45:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.