[SERVER-22499] inShutdown() in mongos should return true as soon as the shutdown process begins Created: 05/Feb/16  Updated: 25/Jan/17  Resolved: 08/Feb/16

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: 3.2.3
Fix Version/s: 3.2.3, 3.3.2

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-20030 ForwardingCatalogManager::shutdown ra... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding 10 (02/19/16)
Participants:
Linked BF Score: 0

 Description   

exitCleanly is used in many places to shut down running pieces of the server, however the inShutdown() method won't return true until dbexit is called at the end of exitCleanly(). This leads to a race where some components can be told to shutdown but when checking inShutdown() will see false



 Comments   
Comment by Githook User [ 08/Feb/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-22499 Mark mongos as inShutdown() as soon as shutdown starts

(cherry picked from commit 50e97d09553b99b82f29c370d7d3008f037c5b10)
Branch: v3.2
https://github.com/mongodb/mongo/commit/bd9b7640324a8633e1d148b271d0f3cb61295ee7

Comment by Githook User [ 08/Feb/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-22499 Mark mongos as inShutdown() as soon as shutdown starts
Branch: master
https://github.com/mongodb/mongo/commit/50e97d09553b99b82f29c370d7d3008f037c5b10

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