[SERVER-54919] TenantMigrationRecipientService should not create an OperationContext while holding the mutex Created: 03/Mar/21  Updated: 29/Oct/23  Resolved: 08/Mar/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: pm-1791_other_required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-03-22
Participants:

 Description   

We would get a deadlock in the TenantMigrationRecipientService in the following case:

 
So we should not create an opCtx while holding the Instance mutex.



 Comments   
Comment by Githook User [ 08/Mar/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-54919: TenantMigrationRecipientService should not create an OperationContext while holding the instance mutex
Branch: master
https://github.com/mongodb/mongo/commit/d729c92c37bb1679f03fab1547f6e5b102b8594c

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