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

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

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongoimport
    • Labels:
      None
    • Platforms 2017-01-23

      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.

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

              Created:
              Updated:
              Resolved: