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

Potential race condition in sweep server

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: DHandles
    • Storage Engines
    • StorEng - Defined Pipeline

      The timeofdeath field in the WT_DATA_HANDLE structure is read and written by both the sweep server and the cursor->close API. It is not atomic or protected by a lock. I believe this is a race condition, but it's (a) very rare (since the sweep server runs relatively infrequently) and (b) of little consequence.

      If it gets covnerted to an atomic, I believe it can use a relaxed memory ordering.

      TSAN will possible pick it up once that gets rolled out more widely.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            will.korteland@mongodb.com Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: