Add a hook_live_restore to python testing

XMLWordPrintableJSON

    • Storage Engines
    • StorEng - 2025-03-28
    • 8

      A new python hook will be added, similar to hook_tiered, that will enable a set of python tests to run the live restore process without needing to make significant changes to the tests.

      This will require intercepting conn_open, conn_reopen, and conn_close.

      The simplest implementation is: 

      • conn_reopen: Move the existing WiredTiger directory to WT_LIVE_RESTORE_SOURCE and use this folder as the live_restore path
      • conn_open: If a WiredTiger directory already exists make the same changes as conn_reopen above 
      • conn_close: Wait until the background thread has run to completion before closing the connection

       

      Developers may investigate further improvements that don’t require a full copy on conn_close and allow conn_reopen to open a directory that is part way through a restore. This is likely to be complex though, and should be strictly timeboxed.

              Assignee:
              Unassigned
              Reporter:
              Luke Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: