[SERVER-62883] Tenant Migration Recipient Service shouldn't delete an earlier migration's state doc while holding the instance mutex Created: 21/Jan/22  Updated: 29/Oct/23  Resolved: 24/Jan/22

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

Type: Bug Priority: Major - P3
Reporter: Christopher Caplinger Assignee: Christopher Caplinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.2
Participants:
Linked BF Score: 19

 Description   

the onDelete op observer calls releaseInstance which takes the POS mutex and can deadlock with checkIfConflictsWithOtherInstances (POS holds its mutex during calls to checkIfConflictsWithOtherInstances)



 Comments   
Comment by Githook User [ 28/Feb/22 ]

Author:

{'name': 'Christopher Caplinger', 'email': 'christopher.caplinger@mongodb.com', 'username': 'UnicodeSnowman'}

Message: SERVER-62883: Unlock Recipient Service mutex before deleting state
Branch: v5.2
https://github.com/mongodb/mongo/commit/111d8d24eb691af8f2f45453eed21872d228e10c

Comment by Christopher Caplinger [ 25/Feb/22 ]

https://jira.mongodb.org/browse/BF-23714 was fixed, but did not make it into v5.2. we're currently getting dupe BF's for this issue, so backporting to avoid future failures.

Comment by Githook User [ 21/Jan/22 ]

Author:

{'name': 'Christopher Caplinger', 'email': 'christopher.caplinger@mongodb.com', 'username': 'UnicodeSnowman'}

Message: SERVER-62883: Unlock Recipient Service mutex before deleting state
Branch: master
https://github.com/mongodb/mongo/commit/9f2271156e1ba2285a6a79b1c883cb9848e2e1da

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