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

Coverity analysis defect 172533: Data race condition

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • ALL
    • N&O 2025-04-14
    • 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@mongodb.com David Goffredo
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None