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
- Ruby driver version 2.5.0. Leaks fixed in version 2.5.1 (see
- Node driver versions 3.0.0 to 3.0.4. Leaks fixed in version 3.0.5 (see
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.