WT initial support for WT_CURSOR->modify in disagg storage

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-10-10
    • 5

      This comment at the top of the layered cursor modify functions:

       *     WT_CURSOR->modify method for the layered cursor type. This function assumes the modify will
       *     be done on the btree that we originally calculate the diff from. Currently, we only allow
       *     writes to the stable table so the assumption holds. TODO: revisit this when we enable writing
       *     to the ingest table.

      The test/format test was only in leader mode, so it doesn't apply to the situation in item one, but the server is now attempting modifies on followers as part of oplog application.

      The "initial support" terminology means this should be functionally complete, even if performance isn't optimal. The current plan is to search the ingest table for the key being modified, then insert a full value if we can't find it (and modify if we do find it). The former case is hopefully relatively uncommon, so maybe performance is acceptable.

      (This ticket used to include another problem related to an assert in the layered modify while running test/format. This is now has its own ticket WT-15530).

        1. CONFIG-wt-2872
          3 kB
          Donald Anderson

            Assignee:
            Will Korteland
            Reporter:
            Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: