[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: |
|
||||
| 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: We may not hold locks on the namespace which triggers an invariant in the yieldable code. |