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

Test selective magic restores in passthrough suites

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 9.0 Required
    • Affects Version/s: None
    • Component/s: None
    • Replication

      We have targeted test coverage for selective magic restore as part of SPM-2209, but we should extend our passthroughs to randomly perform selective restores. We'll get better coverage of different collection types (timeseries, capped collections, TTL indexes, etc) that we can't feasibly obtain via targeted testing.

      We should be sure to do selective restores across replica sets, sharded clusters, and sharded clusters with sharded collections via modifying each magic restore suite.

      We have the magic_restore_backup.js and magic_restore.js hooks that perform backup and restore respectively. We can add logic in these files to perform a selective backup and restore via a parameter we pass in via yaml. We'll need to add filtering to the backup copying, and add the list of collections to restore into the restore configuration.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: