[SERVER-15123] mongoimport --stopOnError does not stop for the error- E11000 duplicate key error index Created: 03/Sep/14  Updated: 21/Sep/17  Resolved: 03/Sep/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eoin Brazil Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates TOOLS-65 mongoimport stopOnError does not stop... Closed
Operating System: ALL
Participants:
Case:

 Description   

Hi All,

Mongoimport's --stopOnError functionality does not stop for the error type, E11000 duplicate key error index as per it's defined behaviour in the source. With the in-source code comment of:

// we don't want to return an error from the mongoimport process for
// dup key errors

Is it possible to change this to return an error or add a strict flag such that it will return an error for this condition ? Or is this simply incorrect in the docs ?

Thanks!
Eoin


Generated at Thu Feb 08 03:37:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.