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

Make insert on update (upsert: true) atomic with query + insert

    XMLWordPrintableJSON

Details

    • Major Change

    Description

      The update operation (with upsert:true) is not currently atomic, for both the query + resulting insert. In highly active environments this will results in duplicated documents or an error due to unique index constraints.

      The preferred behavior is that all updates will insert a new document or update the existing one, and not result in duplicate documents.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lubinwang lubinwang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: