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

Require magic restore node to pass in --replSet

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v8.0
    • Repl 2024-05-27

      We already implicitly require magic restore to restore a replica set node, since the replicaSetConfig parameter in the restore configuration is required. We should enforce that by requiring the --replSet parameter when --magicRestore is present. This will prevent the user from accidentally running the restore on a standalone node. While this is probably safe, there are subtle differences between the two, and we often check isReplSet. It makes it easier to reason about if we limit users to specifying --replSet.

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

              Created:
              Updated:
              Resolved: