Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3238

Log an error message in mongo restore/dump on any error related to config DB

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongorestore
    • Labels:
      None

      Currently, some collections in the config DB can't be dumped or restored. We have a denylist of collections, but it is hard to keep it up to date.

      TOOLS-3203 was filed to exclude the config DB by default, but that is deprioritized in favor of this ticket.

      For now, we'd like to alert users that they should explicitly exclude the config DB from mongodump and mongorestore upon any error related to the config DB. They would exclude the DB by adding --nsExclude=config.* in mongorestore, and excludeCollection or excludeCollectionsWithPrefix in mongodump. There should be an informative log message that a user sees whenever they encounter any error related to the config DB.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rohan.sharan@mongodb.com Rohan Sharan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: