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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 8
    • Storage - Ra 2021-09-20

      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.

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

              Created:
              Updated:
              Resolved: