[GODRIVER-1478] Pooled sessions should have use time updated when retrieved from the pool Created: 03/Feb/20  Updated: 28/Oct/23  Resolved: 04/Feb/20

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

Type: Bug 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


 Description   

The session pool implementation does not update the last used time of a session, so it considers the session to be expired 30 minutes after creation, even if the session has been taken from the pool many times.

 

User facing impact is low, as any operations that must use the same session (e.g. getMore must use the same session as the operation used to create the cursor) hold onto the session rather than putting it back in the pool.



 Comments   
Comment by Githook User [ 04/Feb/20 ]

Author:

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

Message: GODRIVER-1478 Update session's last used time when executing an operation (#291)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5a9d0bf020436e5be57a3b491ed002de96ecced6

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