The `captrunc` test command doesn't atomically delete data and indexes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Storage Execution
    • ALL
    • Execution Team 2022-10-17, Execution Team 2022-10-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The captrunc test command invokes cappedTruncateAfter without a WUOW. Based on the implementation of WiredTigerRecordStore::doCappedTruncateAfter, this means that first the indexes will be detached for the deleted records and later on, the actual data will get truncated in a separate WUOW.

      This means if a crash happens in between the two, the index and data will remain inconsistent.

      Without a crash of the server, there is not a problem because the whole command runs with a collection X-lock.

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: