-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Dotnet Drivers
-
Not Needed
-
Data race condition
The value of the shared data will be determined by the interleaving of thread execution. Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition
/src/MongoDB.Driver/Core/Servers/ServerMonitor.cs:163: GUARDED_BY_VIOLATION 162231 Accessing "this._heartbeatCancellationTokenSource" without holding lock "ServerMonitor._lock". Elsewhere, "ServerMonitor._heartbeatCancellationTokenSource" is written to with "ServerMonitor._lock" held 2 out of 3 times.