-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
ALL
-
Repl 2021-03-22
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.