[SERVER-53830] Test only: fix synchronization in replica_set_monitor_integration_test.cpp Created: 15/Jan/21  Updated: 29/Oct/23  Resolved: 25/Feb/21

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

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

Issue Links:
Depends
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 9

 Description   

In the ReplicaSetMonitorCleanup test case, the variable `cleanupInvoked` is not properly guarded. The test failure https://jira.mongodb.org/browse/BF-19745 is happening because CPU is reordering the sequence of assigning `cleanupInvoked` and testing it in another thread. Fix is to add a mutex.



 Comments   
Comment by Githook User [ 24/Feb/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-53830: fix flaky race in replica_set_monitor_integration_test
Branch: master
https://github.com/mongodb/mongo/commit/fdfc0daa5e3c46ac7a2b6e08d98528b161217467

Comment by Andrew Shuvalov (Inactive) [ 19/Feb/21 ]

For https://jira.mongodb.org/browse/BFG-759488 failure.

Comment by Githook User [ 19/Jan/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-53830: fix synchronization in replica_set_monitor_integration_test.cpp
Branch: master
https://github.com/mongodb/mongo/commit/457c2faf499e465bbecabd02701f2b08b681c3f8

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