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

mongorestore with --oplogReplay breaks on a replica set reconfig

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc1
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            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

              Dates

              Created:
              Updated:
              Resolved: