Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53830

Test only: fix synchronization in replica_set_monitor_integration_test.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 9

      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.

            Assignee:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: