Mongorestore fails if setDefaultRWConcern ran during oplog dump

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 3
    • Tools and Replicator
    • 8

      Problem Statement/Rationale

      Running setDefaultRWConcern can create the config.settings collection. The collection should be created by an oplog with namespace config.$cmd, which is ignored by mongorestore. As a result, restoring the oplog dump errors out with the message:

      Failed: restore error: error applying oplog: applyOps: (NamespaceNotFound) cannot apply insert or update operation on a non-existent namespace config.settings
      

      Expected Results

      It's unclear whether this should be supported.

      Actual Results

      Mongorestore fail with error.

      Additional Notes

      We should either fix this in mongorestore, or add a guardrail in mongodump to prevent creating unrestorable oplog files.

            Assignee:
            Unassigned
            Reporter:
            Jian Guan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: