ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines, Storage Engines - Transactions
    • 30.437
    • SE Transactions - 2026-12-04
    • 5

      Background

      Design: WRITING-39975. Epic: SPM-4886.

      blind_remove (WT-18922) is only supported on layered tables. Leader (WT-18975) and mirrored (WT-18976) blind removes both write through the stable table's file cursor. Review of WT-18975 (PR #15182) asked to implement blind remove on the file cursor first, then build the layered work on top.

      Change

      • WT_SESSION::open_cursor and WT_CURSOR::reconfigure accept blind_remove=true on file: cursors. Other non-layered cursors still fail with ENOTSUP.
      • With the option set, WT_CURSOR::remove returns 0 for a missing or already-deleted key and writes nothing.
      • Other errors are unchanged, for example WT_ROLLBACK on a write conflict and WT_PREPARE_CONFLICT on a prepare conflict.
      • A positioned cursor keeps its position after a no-op remove. If it cannot, the remove fails with WT_ROLLBACK.
      • Removing a key outside the cursor bounds fails with EINVAL, as on layered tables.
      • Update the blind_remove description in dist/api_data.py. No server change.

      Tests

      Python tests on file: tables in the same PR cover:

      • Missing, present and already-deleted keys; results without the option are unchanged.
      • Positioned and unpositioned removes, with next and prev afterwards.
      • A second remove of the same key at a later timestamp, and remove, insert, remove, with reads at each timestamp through checkpoint and restart. No update chain ends up with two consecutive tombstones.
      • Write and prepare conflicts, bounds, and reconfigure.

      Acceptance criteria

      • Behaviour matches the above.
      • New tests pass, and fail without the change.
      • Existing layered blind_remove tests still pass.

      Depends on

      None. Blocks WT-18975 and WT-18976.

       

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Ayesha Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: