[SERVER-20138] NetworkInterfaceASIO needs a command to drop pooled connections Created: 26/Aug/15  Updated: 08/Jan/24  Resolved: 21/Jun/16

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.1.8
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

We need a method to dump pooled connections for a host and port ( let's say on adding a shard, removing a shard and adding it under a different name)

Something like:

::dumpConnections(const HostAndPort&) would do the trick.

The connection pool will offer a function for this, network interface asio will just need to hook it up



 Comments   
Comment by Mira Carey [ 21/Jun/16 ]

After discussion, not needed

Comment by Andy Schwerin [ 07/Oct/15 ]

We'll care about dropping all incoming connections for the foreseeable future, because we have to do it whenever a primary replica set member steps down to secondary. I don't think we ever really need to drop outgoing connections.

Comment by Spencer Brody (Inactive) [ 07/Oct/15 ]

mira.carey@mongodb.com, correct, we no longer need this for the thing I originally thought we'd need this for in sharding

Comment by Mira Carey [ 07/Oct/15 ]

schwerin, does the need to drop all connections seem like the kind of thing we'll care about in the future?

spencer, I remember having a conversation with you a while back, that initially motivated this idea, that I think got worked around using multiple executors.

Comment by Mira Carey [ 15/Sep/15 ]

Drop/close is more appropriate wording. I'll update accordingly

Comment by Andy Schwerin [ 26/Aug/15 ]

Do you mean close? We usually use "dump" to mean "display diagnostic data".

Generated at Thu Feb 08 03:53:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.