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

mongorestore: oplog + capped collection problem

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.8
    • Component/s: Storage
    • Labels:
      None
    • ALL

      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

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

              Created:
              Updated:
              Resolved: