[GODRIVER-1130] Pinned Servers should be cleared properly Created: 12/Jun/19  Updated: 28/Oct/23  Resolved: 24/Jun/19

Status: Closed
Project: Go Driver
Component/s: Core API
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Emmanuel Eppinger (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Core API

 Description   

Operations that use a pinned server don't properly clear the pinned server for retries because the pinned server is added directly to the driver.Operation. In order to fix this, we need to wrap the server selector in another server selector that will attempt to use a session's pinned server when server selection is taking place. An example of the fixed code can be found here: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/457635/6/mongo/session.go#192



 Comments   
Comment by Githook User [ 24/Jun/19 ]

Author:

{'name': 'Emmanuel', 'username': 'eppingere', 'email': 'manny.eppinger@mongodb.com'}

Message: Add new ServerSelector for PinnedServers

GODRIVER-1130

Change-Id: If6ec2e5137eff02ee8ee53b4fe7cdd676e4a26d2
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/d92bcdb574816fe84a7924b3394c4eef1fc1a54e

Comment by Emmanuel Eppinger (Inactive) [ 24/Jun/19 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/457972

Comment by Emmanuel Eppinger (Inactive) [ 13/Jun/19 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/457972

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