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

Change operation order of prepared commit and rollback

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.4.0-rc7, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved: