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

ClusterRole data race in FaultManagerTest unit test

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • 0

      The data race from the ThreadSanitizer output:

      A thread running the NonCriticalFacetDoesNotTransitionToActiveFaultAfterTimeoutFromTransientFault unit test is writing to ClusterRole, within the destructor of UnitTestEnvironment (i.e. unit test teardown).
      A thread running ProgressMonitor::progressMonitorCheck() is reading ClusterRole. This thread was started by the above unit test.
      To prevent this data race, the unit test should be modified to stop the thread running progressMonitorCheck before test teardown.

            Assignee:
            naafiyan.ahmed@mongodb.com Naafiyan Ahmed
            Reporter:
            israel.hsu@mongodb.com Israel Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: