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

mongorestore does not skip restore of system.profile collection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.3, 3.1.2
    • Component/s: mongorestore
    • Labels:
      None
    • Backport Requested:
      v3.0
    • Sprint:
      Kernel Tools Iteration 3.1.2

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpobrien Michael O'Brien
                Reporter:
                rassi J Rassi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: