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

2.6 mongodump writes no output files when dumping "system.users"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Security, Tools
    • Fully Compatible
    • ALL

      With mongodump-2.4, this works:

      $ mongodump-2.4 -d "admin" -c "system.users"
      connected to: 127.0.0.1
      Tue Feb 25 13:53:12.167 DATABASE: admin	 to 	dump/admin
      Tue Feb 25 13:53:12.167 	admin.system.users to dump/admin/system.users.bson
      Tue Feb 25 13:53:12.168 		 1 objects
      Tue Feb 25 13:53:12.168 	Metadata for admin.system.users to dump/admin/system.users.metadata.json
      $
      

      but doing the same thing, against the same db, with 2.6rc0 mongodump writes no output file:

      $ mongodump-2.6 -d "admin" -c "system.users"
      connected to: 127.0.0.1
      2014-02-25T13:54:36.635-0500 DATABASE: admin	 to 	dump/admin
      $
      

      however, it looks like other collections (system.roles, system.version, etc) do get dumped as expected.

      We need to be able to dump system.users in order to complete the multi-tenant user dump/restore process outlined in Matt's comment on QA-404:

      https://jira.mongodb.org/browse/QA-404?focusedCommentId=479218&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-479218

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: