Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-388

mongorestore with --oplogReplay breaks on a replica set reconfig

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None

      It looks like there's a check for the ns field being blank, and the following error is showing up:

      restore error: error applying oplog: applyOps: op does not contain required "ns" field: 0
      

      oplog entry for a replica set reconfig looks like

      { "ts" : Timestamp(1416342562, 1), "h" : NumberLong("5170151484721087208"), "v" : 2, "op" : "n", "ns" : "", "o" : { "msg" : "Reconfig set", "version" : 2 } }
      

      There's probably a few replica-set internal oplog entries where the ns field will be blank.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            sam.helman@10gen.com sam.helman@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: