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

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

    • 5
    • Storage - Ra 2021-05-31

      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

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

              Created:
              Updated:
              Resolved: