[SERVER-61396] Fix data race in ConnectionThread and SessionThread in transport_layer_asio_test Created: 10/Nov/21  Updated: 29/Oct/23  Resolved: 11/Nov/21

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

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: servicearch-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-61016 Swallow connection reset-related erro... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2021-11-15, Service Arch 2021-11-22
Participants:
Linked BF Score: 151
Story Points: 2

 Description   

ConnectionThread::_run can be called before the ConnectionThread object has finished being constructed, so then when it accesses _s, _s is sometimes not fully constructed.

The same is true in the SessionThread class



 Comments   
Comment by Billy Donahue [ 11/Nov/21 ]

Fixed by SERVER-61016

Comment by Billy Donahue [ 10/Nov/21 ]

Will be fixed as a bit of a pork barrel with SERVER-61016, which affects the same file.

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