[SERVER-69214] Potential TenantMigrationDonorService race condition Created: 26/Aug/22  Updated: 29/Oct/23  Resolved: 25/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Didier Nadeau
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-10-31
Participants:

 Description   

In the TenantMigrationDonorService when we first complete the run future chain we access the abortReason and the _stateDoc without guarding them. 

We should enforce guarding access to those variables.



 Comments   
Comment by Githook User [ 25/Oct/22 ]

Author:

{'name': 'Didier Nadeau', 'email': 'didier.nadeau@mongodb.com', 'username': 'nadeaudi'}

Message: SERVER-69214 Acquire lock in TenantMigrationDonorService before accessing members
Branch: master
https://github.com/mongodb/mongo/commit/5a1327976e9023f7419f2d83843cbfcc8ae1edd9

Generated at Thu Feb 08 06:12:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.