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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • None
    • None
    • 8
    • 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

              monica.ng@mongodb.com Monica Ng
              monica.ng@mongodb.com Monica Ng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: