Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

fix(mongos): fix connection leak when mongos reconnects #335

Merged
merged 2 commits into from
Aug 13, 2018

Conversation

daprahamian
Copy link
Contributor

@daprahamian daprahamian commented Jul 31, 2018

Our mongos reconnect logic involved creating a new Server+Pool
per proxy per iteration of the reconnect logic. These instances
were never cleaned up, resulting in a huge number of connections
when the proxies finally reconnected.

Fixes NODE-1403

WIP b/c I am trying to figure out how to test this. I have a test now. It takes a long time though :(

Our mongos reconnect logic involved creating a new Server+Pool
per proxy per iteration of the reconnect logic. These instances
were never cleaned up, resulting in a huge number of connections
when the proxies finally reconnected.

Fixes NODE-1403
@daprahamian daprahamian force-pushed the NODE-1403/stop-connection-leak branch from 284e8bc to 2d47126 Compare August 3, 2018 18:59
@daprahamian daprahamian changed the title WIP: fix(mongos): fix connection leak when mongos reconnects fix(mongos): fix connection leak when mongos reconnects Aug 3, 2018
@mbroadst mbroadst merged commit 1e5fdb8 into master Aug 13, 2018
@mbroadst mbroadst deleted the NODE-1403/stop-connection-leak branch August 13, 2018 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants