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

Migrate catch2's live_restore_test_env to use a mock_connection instead of a connection wrapper

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • 5
    • StorEng - Defined Pipeline

      live_restore_test_env.h (added in WT-13871) uses a connection wrapper to setup up the test environment for live restore unit testing. This is slow as it needs to create a full WiredTiger database, and it requires special logic on shutdown to handle the metadata/turtle files that were create but not needed for our testing.

      This ticket is to investigate and implement using a mock_connection instead and calling __wt_live_restore_os directly rather than via the real connection's wiredtiger_open.

       

      There's a few things to consider:

      • We need to pass in the config as an array of strings. See the `config_parser` type and `setup_bm` for an example usage. Without this WiredTiger's config parsing will run into some nasty OOB memory
      • The mock connection doesn't seem to support verbose logging at the moment. This is useful but not mandatory for this ticket

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            andrew.morton@mongodb.com Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: