[SERVER-73985] CollectionPtr created in the Database init code should not be yieldable Created: 14/Feb/23  Updated: 29/Oct/23  Resolved: 15/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-02-20
Participants:
Linked BF Score: 160

 Description   

Creating yieldable CollectionPtr may trip invariant that the namespace is locked which may not be the case during Database initialization. No need for the CollectionPtr to be yieldable as it is never passed to Query.



 Comments   
Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-73985 Database init code should not create a yieldable CollectionPtr

We may not hold locks on the namespace which triggers an invariant in the yieldable code.
Branch: master
https://github.com/mongodb/mongo/commit/006518628b59623ceb9e0f6503f4bf6a744f120f

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