[SERVER-61956] fix data race when accessing the state machine's state Created: 08/Dec/21  Updated: 29/Oct/23  Resolved: 08/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 4.4.12, 5.0.7

Type: Bug Priority: Major - P3
Reporter: Lamont Nelson Assignee: Lamont Nelson
Resolution: Fixed Votes: 0
Labels: pm-2364-faulty-mongos
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Participants:
Linked BF Score: 169
Story Points: 1

 Description   

state() is accessed from multiple threads and the underlying _state variable is not protected.



 Comments   
Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'LaMont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-61956 fix data race when accessing the state machine's state

(cherry picked from commit 1730e8918556524e0207c00869328df7d40f4ff5)
Branch: v5.2
https://github.com/mongodb/mongo/commit/dcef9a469854574e7361f894c059b3d3e4b73884

Comment by Githook User [ 28/Dec/21 ]

Author:

{'name': 'LaMont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-61956 fix data race when accessing the state machine's state
Branch: v4.4
https://github.com/mongodb/mongo/commit/7f2a575a1a1fb90197dac5c125bfc03348355b7f

Comment by Githook User [ 08/Dec/21 ]

Author:

{'name': 'LaMont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}

Message: SERVER-61956 fix data race when accessing the state machine's state
Branch: master
https://github.com/mongodb/mongo/commit/1730e8918556524e0207c00869328df7d40f4ff5

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