[SERVER-36466] Secure shutdown conditions for SpecificPool Created: 06/Aug/18  Updated: 29/Oct/23  Resolved: 15/Aug/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.1, 4.1.1
Fix Version/s: 4.0.2, 4.1.3

Type: Bug 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
Duplicate
is duplicated by SERVER-36418 Fix double free in connection_pool_test Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Platforms 2018-08-27
Participants:
Linked BF Score: 50

 Description   

As is, it's possible to get stuck in the specific pool loop after shutdown proper because of the ordering of certain conditions.



 Comments   
Comment by Githook User [ 17/Aug/18 ]

Author:

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

Message: SERVER-35056 Flush ready callbacks on NetworkInterfaceTL shutdown

Squashed from 3 commits:

SERVER-35684 Remove `promise.getFuture()`

This API invites subtle race conditions. So just remove it, and
force everyone to use a unified API which creates a promise and
a future at the same time.

(cherry picked from commit 2338f365430d7f395faf73bff6c64def505da1b3)

SERVER-35056 Flush ready callbacks on NetworkInterfaceTL shutdown

(cherry picked from commit b49a27b359b17cd1b1560134b89527b78db565cc)

SERVER-36466 Secure shutdown conditions for SpecificPool

(cherry picked from commit 5e0545d3625dc85d16f5f021896f61d3a21e2333)
Branch: v4.0
https://github.com/mongodb/mongo/commit/6c33879eaa545136f8e1c747780ffd3ccb493dce

Comment by Githook User [ 14/Aug/18 ]

Author:

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

Message: SERVER-36466 Secure shutdown conditions for SpecificPool

(cherry picked from commit 75b6218d33964aee5d68cf2553c95bafd8072d97)
Branch: master
https://github.com/mongodb/mongo/commit/5e0545d3625dc85d16f5f021896f61d3a21e2333

Generated at Thu Feb 08 04:43:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.