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

Remove update free logic in hs_insert_updates.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 1

      luke.pearson demonstrated me a case that fails the search if we free the updates on the update chain after inserting updates to history store as WT-5503 currently do:

      Suppose we have three full updates on the chain:
      F3 -> F2 -> F1
      After the first reconciliation:
      Disk image has F3, and F2 and F1 are inserted into history store.

      Now we update it three more times:
      F6 -> F5 -> F4

      Then we insert F3, F4, and F5 into history store and reconciliation fail:
      We end up with:

      F6 and F5 on the update chain, F3 on the disk image, and F5, F4, F3, F2, and F1 in history store.

      If we do a search for F4, we get F3. Thus, the conclusion of this is that we can't free anything when inserting things to history store. Thus, the optimisation you think we can do to free updates as early as possible is problematic to achieve vamsi.krishna.

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: