[SERVER-71207] Lock ordering violation between POS mutex lock and instance mutex lock Created: 09/Nov/22  Updated: 29/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: lowcontext
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-60872 Deadlock between stepDown and TenantO... Closed
Assigned Teams:
Service Arch
Operating System: ALL
Sprint: Service Arch 2023-06-12, Service Arch 2023-06-26
Participants:

 Description   

On stepdown, the stepdown thread holds the RSTL and POS mutex lock and calls the instance interrupt method which in-turn tries to acquire instance mutex lock. On the other hand, the instance state machinery thread can try to acquire POS mutex holding instance mutex lock. This resulted in deadlocks. (See SERVER-60872 for historical deadlock scenarios). SERVER-60872 will address those deadlock bugs using quick short-term fix. As part of this ticket, we should come up with a long-term solution.

 



 Comments   
Comment by Suganthi Mani [ 09/Nov/22 ]

CC jason.chan@mongodb.com

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