[DRIVERS-453] Decrease likelihood of implicit session leaks Created: 13/Feb/18  Updated: 28/Oct/23  Resolved: 01/Jun/18

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Improvement Priority: Critical - P2
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on JAVA-2778 Implicit sessions are sometimes leaked Closed
depends on PHPC-1120 Decrease likelihood of implicit sessi... Closed
depends on CDRIVER-2503 Decrease likelihood of implicit sessi... Closed
depends on CSHARP-2188 Decrease likelihood of session leaks Closed
depends on CXX-1516 Decrease likelihood of implicit sessi... Closed
depends on GODRIVER-233 Decrease likelihood of implicit sessi... Closed
depends on MOTOR-197 Decrease likelihood of implicit sessi... Closed
depends on NODE-1326 Decrease likelihood of implicit sessi... Closed
depends on PYTHON-1474 Decrease likelihood of implicit sessi... Closed
depends on RUBY-1300 Decrease likelihood of implicit sessi... Closed
Related
related to SERVER-33158 Logical Session refresh batches are t... Closed
related to SERVER-33697 Provide sanity check on number of cac... Closed
Driver Compliance:
Key Status/Resolution FixVersion
NODE-1326 Fixed 3.0.5
SCALA-378 Fixed 2.2.1
PYTHON-1474 Fixed 3.6.1
CSHARP-2188 Fixed 2.5.1
PERL-861 Done 2.0.0
RUBY-1300 Fixed 2.5.1
CXX-1516 Fixed 3.3.0-rc0
PHPC-1120 Fixed 1.5.0
MOTOR-197 Works as Designed
GODRIVER-233 Duplicate
CDRIVER-2503 Fixed 1.10.0
JAVA-2778 Fixed 3.6.3

 Description   
Issue Status as of Mar 08, 2018

Bugs in three MongoDB drivers were causing sessions to leak. If a large number of sessions are leaked, this can have a significant performance impact on the server and may cause the server to run out of memory. Below is a list of drivers and versions affected by this bug:

  • Java driver, versions 3.6.0 to 3.6.2. Leaks fixed in version 3.6.3 (see JAVA-2778)
  • Ruby driver version 2.5.0. Leaks fixed in version 2.5.1 (see RUBY-1300)
  • Node driver versions 3.0.0 to 3.0.4. Leaks fixed in version 3.0.5 (see NODE-1362)

If you’re using any of the affected drivers, please refer to the individual ticket for details on the impact and upgrade to aforementioned versions to avoid the issue.

We have updated our Sessions spec and added tests to prevent regressions in the future. We have also verified that the remaining MongoDB drivers do not leak sessions and are in the process of adding the tests to be compliant with latest spec change.


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