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

Clear history store content when deleting a key due to a globally visible tombstone

    XMLWordPrintable

    Details

    • Story Points:
      5
    • Sprint:
      Storage Engines 2020-02-24, Storage Engines 2020-03-09

      Description

      If a stop time pair for a cell becomes globally visible, we destroy the key in reconciliation. When we do this, we need to begin clearing out history store content for that key.

      Imagine a case where we have timestamps 1, 2, 3 in the history store and 4 on the page itself. If you apply a non-timestamped tombstone, you will destroy the key next time you reconcile the page. However, until the next checkpoint that history content will remain there. Now let's follow up with an update at timestamp 5 to recreate the key. Now if we do a read at timestamp 4, the onpage value (5) won't be visible to us so we'll go into history store and read timestamp 3.

        Attachments

          Activity

            People

            Assignee:
            alex.cameron Alex Cameron (Inactive)
            Reporter:
            alex.cameron Alex Cameron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: