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

mongorestore does not skip restore of system.profile collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3, 3.1.2
    • Affects Version/s: 3.0.0
    • Component/s: mongorestore
    • None
    • Kernel Tools Iteration 3.1.2
    • v3.0

      mongorestore does not skip restore of the system.profile collection. This is a regression introduced in mongorestore 3.0.0.

      To illustrate, see the following session with mongorestore 3.0.2:

      $ mongorestore302
      2015-04-17T19:01:27.134-0400	using default 'dump' directory
      2015-04-17T19:01:27.139-0400	building a list of dbs and collections to restore from dump dir
      2015-04-17T19:01:27.141-0400	reading metadata file from dump/test/system.profile.metadata.json
      2015-04-17T19:01:27.141-0400	restoring test.system.profile from file dump/test/system.profile.bson
      2015-04-17T19:01:27.143-0400	no indexes to restore
      2015-04-17T19:01:27.143-0400	finished restoring test.system.profile
      2015-04-17T19:01:27.143-0400	done
      

      And, the expected behavior with mongorestore 2.6.9:

      $ mongorestore269
      connected to: 127.0.0.1
      2015-04-17T19:01:07.771-0400 dump/test/system.profile.bson
      2015-04-17T19:01:07.771-0400 	 skipping system.profile.bson
      

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: