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

Add flag to history store cursor to track whether underlying table insertion was successful

    XMLWordPrintable

    Details

    • Story Points:
      5
    • Sprint:
      Storage - Ra 2021-05-31

      Description

      Our history store cursor insert implementation performs a few calls after the actual insertion into the history store stable. If these fail, the insert will return non-zero.

      This means that we may bail out of reconciliation without marking the inserted update with the WT_UPDATE_HS flag, leading us to try inserting it again in a subsequent reconciliation.

      The relevant lines are here:
      https://github.com/wiredtiger/wiredtiger/blob/develop/src/history/hs_rec.c#L638
      https://github.com/wiredtiger/wiredtiger/blob/develop/src/cursor/cur_hs.c#L890

        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: