Skip to content

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Oct 9, 2025

Description

Summary of Changes

Notes for Reviewers

What is the motivation for this change?

Release Highlight

MongoClient.close() no longer sends endSessions if the topology does not have session support

MongoClient.close() attempts to free up any server resources that the client has instantiated, including sessions. Previously, MongoClient.close() unconditionally attempted to killall sessions, regardless of whether or not the topology actually supports sessions.

Now, MongoClient.close() only attempts to clean up sessions if the topology supports sessions.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@baileympearson baileympearson reopened this Oct 9, 2025
@baileympearson baileympearson marked this pull request as ready for review October 9, 2025 18:21
@baileympearson baileympearson requested a review from a team as a code owner October 9, 2025 18:21
@durran durran self-assigned this Oct 10, 2025
@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 10, 2025
@baileympearson baileympearson requested a review from durran October 10, 2025 15:45
@durran durran merged commit cc85ebf into main Oct 10, 2025
22 of 24 checks passed
@durran durran deleted the NODE-7232 branch October 10, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants