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-5155) release connection lock when topology closed #3618

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alecgibson
Copy link
Contributor

Description

Fix inability to reconnect when topology closed during connection.

What is changing?

The connection lock will be released on the topologyClosed event

Is there new documentation needed for these changes?

No

What is the motivation for this change?

#3596 added a welcome fix to stop topologies leaking (which we've previously been working around).

However, it doesn't address another issue we've seen with this sort of lock, which is that if the topology is closed during connection, a reconnection attempt never resolves.

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

@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 3, 2023
@durran durran self-assigned this Apr 3, 2023
@dariakp dariakp added tracked-in-jira Ticket filed in MongoDB's Jira system External Submission PR submitted from outside the team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Apr 3, 2023
@durran durran removed their assignment May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Submission PR submitted from outside the team tracked-in-jira Ticket filed in MongoDB's Jira system
Projects
None yet
3 participants