-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
-
(copied to CRM)
If admin.tempusers is included in a mongodump that is being restored, the check to see if the admin.tempusers collection already exists before inserting users will say the collection doesn't exists. This means the pre-existing collection is not dropped. This will likely cause a duplicate key error when mongorestore attempts to insert users into this collection. Even worse is that if the users have been changed since the last mongorestore, the newer versions of the users will not be inserted into the temporary collection and the old users in admin.tempusers are the ones which will be merged into admin.system.users.
This is due to restore.knownCollections not being updated with collections that are created during the restore process.
This can cause some particularly serious issues when it interacts with the bug TOOLS-2422. Both should be fixed and backported.
- is related to
-
TOOLS-2422 admin.tempusers is not dropped by mongorestore
- Closed
-
TOOLS-2436 Backport TOOLS-2422 and TOOLS-2423
- Closed