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

Change operation order of prepared commit and rollback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.4.0-rc7, 4.7.0
    • None
    • None
    • 8
    • Storage - Ra 2020-05-18

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: