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

Write live restore unit tests for filling a hole

    • Storage Engines
    • 8
    • StorEng - 2025-01-21

      Write catch2 unit tests for filling holes in the live restore extent list. The existing tests in test_live_restore_extent_lists.cpp can be used as an example.

       

      At least the following tests cases should be covered. Please consider during implementation whether further cases are required.

      ️Removing a hole:

      • Entirely inside an extent
      • Partially overlapping an extent on the left
      • Partially overlapping an extent on the right
      • Fully overlapping an extent
      • Exactly matching an extent
      • Overlapping multiple extents
      • Not overlapping an extent
      • Fully overlapping the final extent in the list. The extent list becomes NULL

      This may uncover bugs that can also be fixed under this ticket. Feel free to break work into separate tickets if the work becomes too large.

            Assignee:
            zunyi.liu@mongodb.com Zunyi Liu
            Reporter:
            andrew.morton@mongodb.com Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: