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

Handle aborting prepared onpage tombstones

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

      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.

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

              Created:
              Updated:
              Resolved: