Coverity analysis defect 146648: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines, Storage Engines - Server Integration
    • ALL
    • SESI - 2025-09-30
    • 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/storage/collection_truncate_markers.cpp:526: MISSING_LOCK 146648 Accessing "this->_lastHighestWallTime" without holding lock "mongo::CollectionTruncateMarkersWithPartialExpiration._lastHighestRecordMutex". Elsewhere, "mongo::CollectionTruncateMarkersWithPartialExpiration._lastHighestWallTime" is written to with "CollectionTruncateMarkersWithPartialExpiration._lastHighestRecordMutex" held 1 out of 1 times.

            Assignee:
            Adeline Chen
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: