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 #2791

Merged
merged 1 commit into from Apr 29, 2021
Merged

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

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

There was one test on this branch looking for that event that was
looking for that event and not "topologyClosed", so I'm wondering
if this should not be backported.

@durran durran requested review from a team, emadum, nbbeeken and dariakp and removed request for a team April 27, 2021 12:05
@durran durran force-pushed the NODE-3219 branch 2 times, most recently from bb33cb9 to 039ba24 Compare April 27, 2021 12:32
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
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

Personally this feels more like a bug-fix and I think it's unlikely users are currently relying on that buggy behavior, so giving the backport my 👍

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.

I'm reasonably convinced that there isn't anything critical relying on this behavior

@durran durran merged commit 16e7064 into 3.6 Apr 29, 2021
@durran durran deleted the NODE-3219 branch April 29, 2021 13:34
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