Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12106

Missing lock when updating the background compaction running flag

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2
    • 2023-12-12 - Heisenbug

      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/conn/conn_compact.c:695: MISSING_LOCK 138589 Accessing "conn->background_compact.running" without holding lock "_wt_spinlock.lock". Elsewhere, "wt_background_compact.running" is accessed with "_wt_spinlock.lock" held 2 out of 3 times (1 of these accesses strongly imply that it is necessary).

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: