[SERVER-71288] Consolidate index build RSTL unlock/relock logic Created: 11/Nov/22  Updated: 27/Oct/23  Resolved: 12/May/23

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Backlog - Storage Execution Team
Resolution: Gone away Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-71191 Deadlock between index build setup, p... Closed
Assigned Teams:
Storage Execution
Sprint: Execution Team 2023-05-29
Participants:

 Description   

As of SERVER-71191, there are two places index builds where we follow the same logic of acquiring the RSTL, releasing it, taking a strong collection lock, and then retrying to acquire RSTL with a timeout. In particular, we do this during index build setup and again for index build commit. This sequence is necessary to avoid deadlocks with prepared transaction and replication state transitions. We should try to consolidate this logic.



 Comments   
Comment by Gregory Noma [ 01/May/23 ]

This may have already been addressed by SERVER-73294

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