Operational Defect Database

BugZero found this defect 31 days ago.

MongoDB | 2646954

ClusterRole data race in FaultManagerTest unit test

Last update date:

4/18/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

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.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Backlog

Learn More

Search:

...