[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: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| 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:
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! |