node-mongodb-native icon indicating copy to clipboard operation
node-mongodb-native copied to clipboard

feat(NODE-6882): close outstanding connections

Open nbbeeken opened this issue 8 months ago • 0 comments

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 avatar Apr 04 '25 15:04 nbbeeken