Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12234

Docs for SERVER-37124: Retry full upsert path when duplicate key exception matches exact query predicate

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 4.1.6
    • manual, Server
    • None

    Description

      Description

      Description:

      No documentation summary in engineering ticket

      Engineering Ticket Description:

      Subset of cases described in SERVER-14322 that can be safely retried as an upsert is when insert portion of update receives a duplicate key exception with duplicate key-values combination matching the query exactly.

      Example:

      db.foo.update({_id:5},{$set:{...}\},{upsert:true})

      can safely retry full upsert if it receives error

      "E11000 duplicate key error collection: bar.foo index: id dup key: { : 5.0 }"

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              ravind.kumar Ravind Kumar (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Andrew Feierabend Andrew Feierabend (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 20 weeks ago