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

Resolve weak hazard pointer references on transaction commit and rollback

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 8
    • Storage - Ra 2021-11-29, Storage - Ra 2021-12-13

      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

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            deepti.hasija@mongodb.com Deepti Hasija (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: