[SERVER-71561] Data race in exhaust_cursor_currentop_integration_test.cpp Created: 22/Nov/22  Updated: 29/Oct/23  Resolved: 28/Nov/22

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

Type: Bug Priority: Major - P3
Reporter: Romans Kasperovics Assignee: Romans Kasperovics
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: QE 2022-11-28, QE 2022-12-12
Participants:
Linked BF Score: 5

 Description   

A DBClientCursor instance is shared between the main and stdx::async threads. The problem can be easily resolved, because the main thread only needs to access cursorId, which can be copied.



 Comments   
Comment by Githook User [ 26/Nov/22 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-71561 Protect shared variable and use notify() in exhaust_cursor_currentop_integration_test
Branch: master
https://github.com/mongodb/mongo/commit/5ebe746f1929c21588e32a91a924ac49bce59acd

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