[SERVER-65655] Race condition on reinitializeStorageEngine Created: 14/Apr/22  Updated: 29/Oct/23  Resolved: 19/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc1, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Gomez Ferro Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2022-05-02
Participants:
Linked BF Score: 175

 Description   

reinitializeStorageEngine() first sets the TicketHolders to nullptr, and then reinitializes them, all of it while holding the global lock.

However other operations could be accessing the TicketHolders concurrently, since that happens before acquiring the global lock.



 Comments   
Comment by Githook User [ 19/Apr/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-65655 Skip reinitializing TicketHolders in reinitializeStorageEngine()
Branch: master
https://github.com/mongodb/mongo/commit/e1ee231ae3be0a13f173931c895b72f525a8cdf3

Comment by Githook User [ 19/Apr/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-65655 Skip reinitializing TicketHolders in reinitializeStorageEngine()
Branch: v6.0
https://github.com/mongodb/mongo/commit/d53eab0463e1a6411db622ef525ebc63c59c5a65

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