[CSHARP-2188] Decrease likelihood of session leaks Created: 13/Feb/18  Updated: 28/Oct/23  Resolved: 20/Mar/18

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 2.5
Fix Version/s: 2.5.1

Type: Improvement Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-453 Decrease likelihood of implicit sessi... Closed
Case:

 Description   

Spec change here



 Comments   
Comment by Githook User [ 20/Mar/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2188: Consolidate session handling in Core.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/1273b8a5e687b0d6e5fcf923d8301560beb408eb

Comment by Githook User [ 20/Mar/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2188: Decrease likelihood of session leaks by releasing the
session as soon as possible in AsyncCursor.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/10bd7823f0eb794c66776eec8905b128a90b1c04

Comment by Githook User [ 16/Mar/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2188: Decrease likelihood of session leaks.
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/912e2f8125be79e0c676cc86b2c795962a10c0ee

Comment by Robert Stam [ 05/Mar/18 ]

This actually applies equally to explicit and implicit sessions, so I've removed the word "implicit" from the Summary of the CSHARP ticket.

The leak we are trying to protect against is when an application fails to call Dispose on a cursor. If a cursor releases the session as soon as it is no longer needed it reduces the chances that leaking a cursor results in a leaked session.

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