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

Mongorestore should warn more

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: None
    • Component/s: Tools
    • Labels:

      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.

            Assignee:
            siddharth.singh@10gen.com siddharth.singh@10gen.com
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: