Skip to content

feat(NODE-6882): close outstanding connections #4499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 2, 2025

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Apr 4, 2025

Description

What is changing?

  • connections that are in-use are interrupted by client.close to gracefully shutdown node
Is there new documentation needed for these changes?

Yes

What is the motivation for this change?

Graceful event loop exit

Release Highlight

MongoClient close shuts outstanding in-use connections

The MongoClient.close() method now shuts connections that are in-use allowing the event loop to close if the only remaining resource was the MongoClient.

Double check the following

  • Ran npm run check:lint script
  • 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

@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch 5 times, most recently from 3b95935 to 4b798d7 Compare April 4, 2025 19:04
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch 2 times, most recently from 0d71ec5 to 008c6dc Compare April 24, 2025 14:52
@nbbeeken nbbeeken marked this pull request as ready for review April 24, 2025 15:19
@nbbeeken nbbeeken requested a review from a team as a code owner April 24, 2025 15:20
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch from 008c6dc to 67421a1 Compare April 24, 2025 15:27
@baileympearson baileympearson self-assigned this Apr 24, 2025
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 24, 2025
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch 6 times, most recently from 3159584 to 99d6a90 Compare April 28, 2025 16:16
@nbbeeken nbbeeken requested a review from baileympearson April 28, 2025 16:54
@nbbeeken nbbeeken requested a review from baileympearson April 30, 2025 18:07
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch from 233531a to 91a3103 Compare April 30, 2025 18:14
@nbbeeken nbbeeken requested a review from baileympearson April 30, 2025 19:53
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch from d9ccf0b to ff8e814 Compare April 30, 2025 20:05
@nbbeeken nbbeeken requested a review from baileympearson May 1, 2025 16:23
@nbbeeken nbbeeken requested a review from baileympearson May 1, 2025 20:36
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch 4 times, most recently from cb5bd62 to 4c11661 Compare May 2, 2025 16:49
@nbbeeken nbbeeken force-pushed the NODE-6882-close-inuse branch from 4c11661 to a46ca1d Compare May 2, 2025 19:10
Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending CI.

@baileympearson baileympearson merged commit 64fdb3e into main May 2, 2025
31 checks passed
@baileympearson baileympearson deleted the NODE-6882-close-inuse branch May 2, 2025 20:37
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