Potential race condition in sweep server

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: