[SERVER-30849] CollectionCloner::_handleARMResultsCallback doesn't acquire mutex before accessing member variables Created: 25/Aug/17  Updated: 30/Oct/23  Resolved: 28/Aug/17

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

Type: Bug Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: William Schultz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

The method CollectionCloner::_handleARMResultsCallback doesn't synchronize access to member variables, for example, when it calls _bufferNextBatchFromArm() it is modifying the _documentsToInsert vector without holding a mutex. It needs to acquire the CollectionCloner mutex before reading or writing member variable data.



 Comments   
Comment by Githook User [ 28/Aug/17 ]

Author:

{'username': 'will62794', 'name': 'William Schultz', 'email': 'william.schultz@mongodb.com'}

Message: SERVER-30849 _handleARMResultsCallback needs to hold mutex while accessing member variables
Branch: master
https://github.com/mongodb/mongo/commit/2203abc793e888e1c7b281b8bf213e0fd0446795

Generated at Thu Feb 08 04:25:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.