Coverity analysis defect 127320: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      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/Core/Clusters/MultiServerCluster.cs:186: GUARDED_BY_VIOLATION 127320 Accessing "this._servers" without holding lock "MultiServerCluster._serversLock". Elsewhere, "MultiServerCluster._servers" is written to with "MultiServerCluster._serversLock" held 2 out of 2 times.

            Assignee:
            Unassigned
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: