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

Resolve weak hazard pointer references on transaction commit and rollback

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Once WT-8304 is implemented the modification on the transaction will contain weak references to the pages that the updates from the transaction sit. At the time of transaction_commit or transaction_rollback the updates will need to be resolved. If the hazard pointer has been downgraded to an invalid pointer then the slow path must be taken. An invalid pointer implies that the page has been evicted and must be re-instantiated.

      In this ticket we will focus on resolving updates when:

      • we do not have repeated updates on the same key
      • it is not a prepared transaction.

      Scope:

      • Implement slow path update resolution in commit and rollback
      • Add a flag to avoid resolving updates in unhandled scenarios, i.e. prepare and multiple updates to a single key
      • Add an assert to check that the slow path and fast path resolution matches and additional tests where appropriate

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sulabh.mahajan Sulabh Mahajan
              Reporter:
              deepti.hasija Deepti Hasija
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: