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

prepared transaction rollback and API error handling fixes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Code Review
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.3 Required
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage Engines 2020-01-13, Storage Engines 2020-01-27

      Description

      The changes in WT-5324 have a problem: the test forĀ WT_SESSION.rollback_transaction as the caller in the __wt_txn_err_chk() function call was wrong, always returning success.

      Using the correct test reveals an underlying problem, we need to allow at least WT_CURSOR.reset and WT_CURSOR.close calls in cases where an error has already occurred within a transaction.

      Additionally, under some conditions, prepared transactions can be rolled back, which violates transactional semantics.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                keith.bostic Keith Bostic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: