Coverity analysis defect 174667: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • ALL
    • None
    • 3
    • TBD
    • 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/619af5dff46e1a17bdd528b3cf0d4cc6/bazel_cache/37cb047f8c0eaa2aa46e6d31e914b00b/execroot/_main/src/mongo/db/admission/rate_limiter.cpp:71: MISSING_LOCK 174667 Accessing "this->tokenBucket" without holding lock "mongo::WriteRarelyRWMutex._writeMutex". Elsewhere, "mongo::admission::RateLimiter::RateLimiterPrivate.tokenBucket" is written to with "WriteRarelyRWMutex._writeMutex" held 2 out of 2 times.

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

              Created:
              Updated:
              Resolved: