[SERVER-75844] Fix race in QueryAnalysisSampleTracker Created: 07/Apr/23  Updated: 29/Oct/23  Resolved: 07/Apr/23

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

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2023-04-17
Participants:
Linked BF Score: 160

 Description   

QueryAnalysisSampleTracker::reportForServerStatus() currently doesn't take the mutex. This is incorrect and a race has been detected in BF-28343.



 Comments   
Comment by Githook User [ 07/Apr/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-75844 Fix race in QueryAnalysisSampleTracker
Branch: master
https://github.com/mongodb/mongo/commit/e171d63d52e92ec6930219b110e6e15a0a033b54

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