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

mongorestore short circuits on dup key error

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None

      this is a difference in behavior from the legacy tools.

      classic behavior:
      "mongorestore --w=1" will keep going if it encounters a duplicate key error.

      new behavior:
      "mongorestore --w=1" will short circuit and fail if it encounters a duplicate key error.

      cc dan@10gen.com
      which behavior is better?

      1. continue inserting on duplicate key errors
      2. short circuit and fail on a duplicate key error
      3. have a --stopOnError flag which controls this behavior (which is what mongoimport does)

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: