Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-2282

mongoexport for non-existent collection behavior improvement

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongoexport
    • Labels:
      None

      Description

      I got some feedback in person from a MongoDB user at one of our recent conferences:

      The user had a typo in the collection name they targeted when using mongoexport and as a result they exported an empty result. However since they did not get feedback from mongoexport that the collection did not exist, they didn't realize until later that they'd made the mistake and were frustrated.

      Ideally we would provide some kind of feedback to the user when targeting a non-existent collection rather than making it feel like the operation was successful (even if we have indeed successfully dumped an empty file).

      They found out how to use mongoexport from the Atlas in-UI Command Line tools helper page.

      This may apply to mongodump as well (I'm not sure).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                divjot.arora Divjot Arora
                Reporter:
                andrew.davidson Andrew Davidson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: