Coverity analysis defect 172533: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • ALL
    • N&O 2025-04-14
    • None
    • 3
    • None
    • 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
      /data/mci/c85365eaa2083bcd0d4cb70cd7ee4685/bazel_cache/a97afe52cd9ebe41e9e1334ac4ba1428/execroot/_main_/src/mongo/client/sdam/topology_listener.cpp:237: MISSING_LOCK 172533 Accessing "event.hostAndPort" without holding lock "mongo::sdam::TopologyEventsPublisher._eventQueueMutex". Elsewhere, "mongo::sdam::TopologyEventsPublisher::Event.hostAndPort" is written to with "TopologyEventsPublisher._eventQueueMutex" held 12 out of 12 times.

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

                Created:
                Updated:
                Resolved: