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

Handle aborting prepared onpage tombstones

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.4.0-rc7, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage - Ra 2020-05-18

      Description

      I had a chat with Haribabu Kommi and we believe there might be an edge case with aborting prepared updates.

      When aborting a prepared on-disk value, we "fix-up" the on-disk value by appending the latest history store update into the list so that it can get picked up by reconciliation and written back onto the page displacing the prepared update that was previously there.

      In the case where we have an on-disk value, add a prepared tombstone, and then reconcile, we get an on-disk value with the stop pair set and the prepare flag set. If we abort that tombstone, we'll end up doing the same "fix-up" and replace the on-disk value with the history store value. In this case, we'll actually lose the on-disk value which is wrong because we aborted the tombstone in front of the update, not the update itself. In this case, we need to do something similar to "fix-up prepare", except we need to append the on-disk value into the update chain.

      This was something we thought of while chatting. So the first step for this ticket is to figure out whether this can actually happen or whether we have some mitigation to prevent this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              haribabu.kommi Haribabu Kommi
              Reporter:
              alex.cameron Alex Cameron (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: