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

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

    • Major Change

      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.

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

              Created:
              Updated:
              Resolved: