[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: |
|
||||||||||||
| 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: |
| 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: |