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(sdam): topology no longer causes close event #2792

Merged
merged 1 commit into from
Apr 29, 2021
Merged

fix(sdam): topology no longer causes close event #2792

merged 1 commit into from
Apr 29, 2021

Conversation

durran
Copy link
Member

@durran durran commented Apr 27, 2021

The topology was emitting both a "topologyClosed" and "close"
event which are bubbled up to the MongoClient. This was causing
two "close" events to be emitted from the MongoClient when the
client is closed.

NODE-3219

Note that there were no tests explicitly looking for that event, but there
are tests looking for the topologyClosed event, so I assume this just
slipped through.

The topology was emitting both a "topologyClosed" and "close"
event which are bubbled up to the MongoClient. This was causing
two "close" events to be emitted from the MongoClient when the
client is closed.

NODE-3219
@durran durran requested review from emadum, a team, nbbeeken and dariakp and removed request for a team April 27, 2021 12:09
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

LGTM

@durran durran merged commit 6cd982f into 4.0 Apr 29, 2021
@durran durran deleted the NODE-3219-40 branch April 29, 2021 13:33
ljhaywar pushed a commit that referenced this pull request Nov 9, 2021
The topology was emitting both a "topologyClosed" and "close"
event which are bubbled up to the MongoClient. This was causing
two "close" events to be emitted from the MongoClient when the
client is closed.

NODE-3219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants