[GODRIVER-2867] Connection leak caused by connection-to-transaction pinning when connected to a load balancer Created: 09/Jun/23  Updated: 28/Oct/23  Resolved: 26/Jul/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.12.1, 1.11.8, 1.11.9

Type: Bug Priority: Critical - P2
Reporter: Huan Li Assignee: Matt Dale
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
related to DRIVERS-2647 Drivers should unpin connections when... Backlog
Case:
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

In a Live migration, the Mongosync kept crashing because the connection pool is empty. After we added pool monitoring, we found the pinned connection to transactions kept increasing and never decreases. After talking with matt.dale@mongodb.com , we think there could be a potential driver bug that caused the connection never get released when the client is connected with a load balancer unless that session is used to run another transaction or other non-transaction operation.

Please prioritize the fix because live migration would be potentially blocked by this bug. 



 Comments   
Comment by Githook User [ 26/Jul/23 ]

Author:

{'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}

Message: GODRIVER-2867 Unpin connections when ending a session. (#1330)
Branch: release/1.11
https://github.com/mongodb/mongo-go-driver/commit/2813bdf55668904f6e210396c2e6b02c4441bcf8

Comment by Githook User [ 26/Jul/23 ]

Author:

{'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}

Message: GODRIVER-2867 Unpin connections when ending a session. (#1330)
Branch: release/1.12
https://github.com/mongodb/mongo-go-driver/commit/e9e975d3cc3e980f431e09d76963055ca859b694

Comment by Githook User [ 26/Jul/23 ]

Author:

{'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}

Message: GODRIVER-2867 Unpin connections when ending a session. (#1330)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5ee10b94cc666c2a73e3b89da1fd19bec2314dd0

Comment by Matt Dale [ 21/Jul/23 ]

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

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