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

Add bypassDocumentValidation option to mongorestore and mongoimport

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.1, 3.3.0
    • Component/s: mongoimport, mongorestore
    • Labels:
      None
    • Documentation Changes:
      Completed

      Description

      mongorestore, mongoimport should have an option to bypass document validation (validation will be on by default).

      This is meant to be in alignment with other places where we allow pre-existing data to be out of conformance with the validator. mongorestore is arguably dealing with pre-existing data and used for backup/restore purposes. Without this bypass, that use case is no longer available.

      This may require an upgrade of the mgo driver to allow the insert write command to support this option. See: https://docs.mongodb.org/manual/release-notes/3.2/#bypass-validation

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              judah.schvimer Judah Schvimer
              Reporter:
              pasette Daniel Pasette
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: