Coverity analysis defect 147629: Data race condition

XMLWordPrintableJSON

    • Networking & Observability
    • ALL
    • N&O 2025-08-18
    • None
    • 3
    • TBD
    • 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/261f65657bd114359a8e3a064d6e450e/bazel_cache/54c751a1c930d7b7fb2afe7fb4a68167/execroot/_main/src/mongo/db/ftdc/compressor.cpp:241: MISSING_LOCK 147629 Accessing "this->_config->maxSamplesPerArchiveMetricChunk" without holding lock "mongo::FTDCController._mutex". Elsewhere, "mongo::FTDCConfig.maxSamplesPerArchiveMetricChunk" is written to with "FTDCController._mutex" held 1 out of 1 times (1 of these accesses strongly imply that it is necessary).

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

              Created:
              Updated:
              Resolved: