[SERVER-81051] Prevent lock upgrade when aborting index build on step up Created: 13/Sep/23  Updated: 29/Oct/23  Resolved: 19/Oct/23

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73040 Ban all lock upgrades Closed
Assigned Teams:
Storage Execution EMEA
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-10-30
Participants:

 Description   

On step up, for each index build we take IX locks and then retry skipped records. If any key generation errors are encountered, we abort the index build. As a part of the abort process, we take an X lock on the collection which is a lock upgrade.



 Comments   
Comment by Githook User [ 19/Oct/23 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-81051 Prevent lock upgrade when aborting index build on step up
Branch: master
https://github.com/mongodb/mongo/commit/9dce13a9d0e9cc2073c96d723f277cc3f242ce6c

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