[SERVER-2187] Mongorestore should warn more Created: 07/Dec/10  Updated: 12/Jul/16  Resolved: 25/May/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: siddharth.singh@10gen.com
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-3242 mongorestore should check for dubious... Closed
Participants:

 Description   

Since there is no safe inserting going on mongorestore should throw some warnings up.

If --drop is not used, it should warn if the collection exists.
"Restoring to 'coll-name' without dropping. Restored data will be inserted without raising errors; check your server logs"

If restoring against a non-master/read-only
"You are attempting to report to 'coll-name' but you can't; +<reason>"

These address some of the default assumptions of many. 1) It will complain if there are problems, 2) it works if there are no errors. There are probably many other cases where this is not true, but these are two obvious ones.



 Comments   
Comment by auto [ 25/May/12 ]

Author:

{u'login': u'singhsiddharth', u'name': u'Siddharth Singh', u'email': u'singhsiddharth@gmail.com'}

Message: SERVER-2187 Mongorestore should warn more

If --drop is not used, it should warn if the collection exists.
Branch: master
https://github.com/mongodb/mongo/commit/640fbbe0f31a2909dbae09c394418bb76b06fd90

Generated at Thu Feb 08 02:59:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.