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

E11000 duplicate key error, why multiple formats?

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.9
    • Component/s: Logging
    • Labels:
    • Storage Execution

      I am receiving the E11000 duplicate key error in different formats when running our application on different local machines.

      Format 1:
      u'E11000 duplicate key error collection: baseclass.users index: email dup key: { : "jianyang@mailinator.com" }'

      Format 2:
      u'E11000 duplicate key error index: baseclass.users.$email dup key: { : "jianyang@mailinator.com" }'

      What is the reason for this, and how can I control this formatting? I am trying to reliably extract some data from this string.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            cantonellis Christopher Antonellis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: