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

ClusterRole data race in FaultManagerTest unit test

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Cluster Scalability
    • ALL
    • 24

      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:
            Unassigned Unassigned
            Reporter:
            israel.hsu@mongodb.com Israel Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: