[SERVER-81116] Prevent deadlock during stepup Created: 15/Sep/23  Updated: 16/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Moustafa Maher Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: repl-shortlist
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-66477 Deadlock during stepup when there is ... Closed
Assigned Teams:
Replication
Sprint: Repl 2024-01-08
Participants:
Linked BF Score: 3

 Description   

We have multiple services that should be initiated (through onStepUp interface) while the node is stepping up, and because of primary acquire collection locks during reconstructing prepared transactions, any collection acquiring strong locks after that will cause a deadlock.
This issue happened multiple times, so we need to put a guard against it. 


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