[SERVER-47507] Cancel all remaining egress commands on shutdown Created: 13/Apr/20  Updated: 29/Oct/23  Resolved: 14/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.7, 4.4.0, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-47351 Better synchronize NetworkInterfaceTL... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-04-20
Participants:
Linked BF Score: 19

 Description   

We do currently do not cancel in-flight commands here. In the past, this wasn't so much of an issue because we would close the underlying sockets when we destroyed the reactor. After SERVER-47351, we now have tighter expectations for how quickly we close sockets. Specifically, we need to do our networking cancelation before the asio reactor stops running.



 Comments   
Comment by Githook User [ 28/Apr/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-45117 SERVER-47351 SERVER-47507 Guard NetworkInterfaceTL shutdown for alarms and commands

These three tickets were originally committed separately to v4.4 and
master. However, they build upon each other to throughly shutdown our
NetworkInterfaces upon shutdown.
Branch: v4.2
https://github.com/mongodb/mongo/commit/00b2ba7b26021582bf5d26adb2223568d3362fe9

Comment by Githook User [ 23/Apr/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-47507 Cancel all remaining egress commands on shutdown
Branch: v4.4
https://github.com/mongodb/mongo/commit/93551f663ca09e9993a1be92d18396ca1c7bca03

Comment by Githook User [ 14/Apr/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-47507 Cancel all remaining egress commands on shutdown
Branch: master
https://github.com/mongodb/mongo/commit/8ae6c7dc3c4f90161368dd92522a496e3cafed93

Generated at Thu Feb 08 05:14:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.