[SERVER-68394] Ensure we do not yield strong locks upon startup recovery when _id index is missing Created: 28/Jul/22  Updated: 29/Oct/23  Resolved: 27/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.3, 6.1.0-rc4, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Fausto Leyva (Inactive) Assignee: Fausto Leyva (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-57432 Prevent MODE_X and MODE_S locks from ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0
Steps To Reproduce:
  • skip building an '_id' index for new collections 
  • startup a mongod instance and create a new collection
  • insert 1500 documents 
  • shutdown and upon starting up, we should hit the invariant
Sprint: Execution Team 2022-10-03
Participants:

 Description   

If we yield in startup recovery, upon building a missing _id index we can hit an invariant. This can probably be avoided by setting the index build method to foreground prior to building the index. 



 Comments   
Comment by Githook User [ 30/Sep/22 ]

Author:

{'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}

Message: SERVER-68394 Ensure we do not yield strong locks upon startup recovery when _id index is missing
Branch: v6.1
https://github.com/mongodb/mongo/commit/564b1554dce09835efc08a6b7add93590aaaf2b7

Comment by Githook User [ 30/Sep/22 ]

Author:

{'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}

Message: SERVER-68394 Ensure we do not yield strong locks upon startup recovery when _id index is missing
Branch: v6.0
https://github.com/mongodb/mongo/commit/9a0795c7bd86c4eabd0c07f7025511420c7a1fab

Comment by Githook User [ 27/Sep/22 ]

Author:

{'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}

Message: SERVER-68394 Ensure we do not yield strong locks upon startup recovery when _id index is missing
Branch: master
https://github.com/mongodb/mongo/commit/a388a863827d9a1278841202c6316161214185fb

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