-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Live Restore
-
Storage Engines
-
8
-
StorEng - 2025-03-14
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.