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

Change operation order of prepared commit and rollback

    • Type: Icon: Bug Bug
    • 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
    • None
    • 8
    • Storage - Ra 2020-05-18

      There is a race condition in the current order, which we first mark the prepared txn as aborted, copy the previous update to the update chain, and then fix the history store record.

      We may race with other sessions adding more updates and checkpoint moving them to the history store.

      The solution is to change the order to first append the previous update to the update chain, changed the status of the prepared update, and then fix the history store record.

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: