Coverity analysis defect 139862: Data race condition

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • 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
      /src/mongo/db/s/global_index/global_index_cloning_service.cpp:167: MISSING_LOCK 139862 Accessing "this->this->_waitForCleanupPromise" without holding lock "mongo::global_index::GlobalIndexCloningService::CloningStateMachine._mutex". Elsewhere, "mongo::global_index::GlobalIndexCloningService::CloningStateMachine._waitForCleanupPromise" is written to with "CloningStateMachine._mutex" held 1 out of 1 times.

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

              Created:
              Updated: