node-mongodb-native
node-mongodb-native copied to clipboard
feat(NODE-6882): close outstanding connections
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:lintscript - [ ] 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
- Example:
- [ ] Changes are covered by tests
- [ ] New TODOs have a related JIRA ticket