Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15123

mongoimport --stopOnError does not stop for the error- E11000 duplicate key error index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Operating System:
      ALL
    • 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              eoin.brazil Eoin Brazil
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: