Refactor magic restore utility assertions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v8.0
    • Repl 2024-05-13, Repl 2024-05-27, Repl 2024-06-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have a lot of scattered assertions about the state of a restore node after magic restore. We use these in our targeted tests to ensure things like the stable timestamp and oldest timestamp are set correctly, there are an expected number of ops in the oplog, etc. We should try to consolidate these into a clean API that tests can use to ensure the state after a magic restore is correct.

      We could create a `afterRestoreAssert` function that would check all the relevant assertions.

              Assignee:
              Ali Mir
              Reporter:
              Ali Mir
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: