[SERVER-61565] Data race in TenantMigrationRecipientService Created: 17/Nov/21  Updated: 29/Oct/23  Resolved: 18/Nov/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 5.2.0, 5.1.0-rc4

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1
Participants:
Linked BF Score: 84

 Description   

Fix a BF in the thread sanitizer variant. It caught that we're accessing TenantMigrationRecipientService::_stateDoc without holding _mutex. Although I made recent changes in this area in SERVER-60969, I don't think this is a new bug.



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-61565 Data race in TenantMigrationRecipientService

(cherry picked from commit b325971796111acf38033c8c989d794b4b80359c)
Branch: v5.1
https://github.com/mongodb/mongo/commit/adfc573b37bf74e7e22c9ca465e9483c0c900b0b

Comment by Githook User [ 18/Nov/21 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-61565 Data race in TenantMigrationRecipientService
Branch: master
https://github.com/mongodb/mongo/commit/b325971796111acf38033c8c989d794b4b80359c

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