[SERVER-53455] Obtain mutex in destructor of TenantMigrationRecipientService::Instance Created: 18/Dec/20  Updated: 21/Dec/20  Resolved: 21/Dec/20

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

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Lingzhi Deng
Resolution: Won't Do Votes: 0
Labels: pm-1791_other_required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Sprint: Repl 2020-12-28
Participants:
Linked BF Score: 9

 Comments   
Comment by Lingzhi Deng [ 21/Dec/20 ]

I think if there is a running instance, the instance shouldn't call its destructor. The reason why this happened was that the continuation chain didn't capture a shared copy of the instance object. This was fixed as part of SERVER-48814 where we capture the instance by shared_from_this(). Closing.

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