[SERVER-41468] MongoS `shutdownTask` can access the LogicalSessionCache before it has been created Created: 03/Jun/19  Updated: 29/Oct/23  Resolved: 04/Jun/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.2.0-rc1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
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-41380 mongos segfaults when port already in... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Sharding 2019-06-17
Participants:
Linked BF Score: 91

 Description   

The cleanup task on MongoS is registered before the LogicalSessionCache has been created. Because of this, if an error occurs during startup, it is possible that the shutdownTask may dereference a null pointer.



 Comments   
Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-41468 Only shut down the LogicalSessionsCache if it has been created

(cherry picked from commit 5e998f021f3dc2f3da3da47d966f4411487c2058)
Branch: v4.2
https://github.com/mongodb/mongo/commit/0d26400300a2c007c825c5a718e5484036adf3c8

Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-41468 Only shut down the LogicalSessionsCache if it has been created
Branch: master
https://github.com/mongodb/mongo/commit/5e998f021f3dc2f3da3da47d966f4411487c2058

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