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

mongorestore: oplog + capped collection problem

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Cannot Reproduce
    • 3.2.8
    • None
    • Storage
    • None
    • ALL

    Description

      When I try restore databases from dump, mongorestore gives an error:

      2016-07-27T14:51:07.204+0700    restoring indexes for collection dbname.ip_stats from metadata
      2016-07-27T14:52:12.049+0700    finished restoring dbname.ip_stats (10805669 documents)
      2016-07-27T14:52:12.051+0700    restoring users from dbname/dump/admin/system.users.bson.gz
      2016-07-27T14:52:12.076+0700    restoring roles from dbname/dump/admin/system.roles.bson.gz
      2016-07-27T14:52:12.151+0700    error dropping temporary collection admin.temproles: ns not found
      2016-07-27T14:52:12.151+0700    replaying oplog
      2016-07-27T14:52:13.604+0700    Failed: restore error: error applying oplog: applyOps: Cannot change the size of a document in a capped collection: 222 != 218
      

      dump created by: mongodump with --oplog --gzip options
      same options passed in mongorestore

      Attachments

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey T Schubert
            Hett Anton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: