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

Add a new flag for API check instead of clearing prepared flag which may incorrectly force a roll back

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      Storage - Ra 2021-09-20

      Description

      Currently, the WT_TXN_PREPARED flag is temporarily cleared in the function __txn_search_prepared_op. If eviction is currently happening and experiences cache pressure, it may try to rollback an active transaction. While the flag is temporarily cleared, the __wt_txn_is_blocking function will not recognise that the current transaction is a prepared transaction, and triggers a rollback with the "oldest pinned transaction ID rolled back for eviction" reason.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              monica.ng Monica Ng
              Reporter:
              monica.ng Monica Ng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: