[GODRIVER-1957] Update connection pinning logic for LB mode Created: 09/Apr/21  Updated: 28/Oct/23  Resolved: 14/Apr/21

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.0

Type: Improvement Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (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 [ 14/Apr/21 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1957 Update connection pinning logic for LB mode (#633)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/96c7135d19c54ecbbf754aede941235dd587de7d

Comment by Divjot Arora (Inactive) [ 12/Apr/21 ]

https://github.com/mongodb/mongo-go-driver/pull/633

Generated at Thu Feb 08 08:37:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.