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

Mongorestore does not restore the whole content of the collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.11
    • Component/s: mongorestore
    • Labels:
    • Environment:
      debian 7

      When I do a mongorestore of a specific mongodump I have :

      • on my local machine : 56475 documents in my collection "suivis"
      • on my remote server : 19000 documents in my collection "suivis"

      When I rerun my mongorestore on the specific collection (using --collection), the collection restores to 56475 documents.

      Those both tests cases have been made on brand new clean databases (not using any --drop).

      Any clue of what's happening ?

      I'm afraid I can't upload confidential client data for you to reproduce the bug.

      There's no error in the mongorestore process except this :

      Failed: mydb.system.users: error creating collection mydb.system.users: error running create command: not authorized on mydb to execute command

      { create: "system.users" }

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            davidfabreguette David Fabreguette
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: