Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90338

Refactor magic restore utility assertions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • 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

      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@mongodb.com Ali Mir
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: