Coverity analysis defect 150216: Data race condition

XMLWordPrintableJSON

    • Cluster Scalability
    • 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/resharding/resharding_donor_service.cpp:403: MISSING_LOCK 150216 Accessing "this->this->_coordinatorHasDecisionPersisted" without holding lock "mongo::ReshardingDonorService::DonorStateMachine._mutex". Elsewhere, "mongo::ReshardingDonorService::DonorStateMachine._coordinatorHasDecisionPersisted" is written to with "DonorStateMachine._mutex" held 3 out of 3 times.

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

              Created:
              Updated: