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

mongoimport stopOnError does not stop on error (legacy C++)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • Legacy C++ Implementation
    • mongoimport
    • None
    • Platforms 2017-01-23

    Description

      stopOnError seems to only stop on exception thrown (broken socket?)

      Actual database errors like duplicate _id does not stop it *even if the duplicate is in the first 10 documents, or every document.

      The code seems to deliberately make exception for 'uplicate' string in GLE error, but it also ignores other insertion errors - improper format for coordinates, shard key not set, etc.

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: