Skip to content
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

fix(NODE-6469): pool is cleared before connection checkin on error #4296

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Oct 28, 2024

Description

What is changing?

Incorporate test changes from mongodb/specifications#1690.

Additionally, we now always clear the pool after failing to establish a connection before any other error handling logic.

Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

ConnectionClosedEvents always follow PoolClearedEvents

When Connection Monitoring and Pooling events are listened for, ConnectionClosedEvents are now always emitted after PoolClearEvents.

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

@baileympearson baileympearson changed the title test(DRIVERS-1785): pool is cleared before connection checkin on error fix(NODE-6469): pool is cleared before connection checkin on error Nov 13, 2024
@aditi-khare-mongoDB aditi-khare-mongoDB added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Nov 19, 2024
@aditi-khare-mongoDB aditi-khare-mongoDB self-assigned this Nov 19, 2024
Copy link
Contributor

@aditi-khare-mongoDB aditi-khare-mongoDB left a comment

Choose a reason for hiding this comment

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

LGTM!

@aditi-khare-mongoDB aditi-khare-mongoDB merged commit 06a2e2c into main Nov 19, 2024
25 of 29 checks passed
@aditi-khare-mongoDB aditi-khare-mongoDB deleted the spec-fest-1 branch November 19, 2024 20:56
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

@baileympearson could you add release notes?

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.

3 participants