Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
ALL
-
Repl 2021-03-22
Description
We would get a deadlock in the TenantMigrationRecipientService in the following case:
- Thread A is holding the Instance mutex and waiting for the Service mutex in order to register the opCtx that it creates in _onCloneSuccess() here.
- Thread B is holding the Service mutex and waiting for Instance mutex in do currentOp reporting.
So we should not create an opCtx while holding the Instance mutex.