-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
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.
- duplicates
-
SERVER-14322 Retry on predicate unique index violations of update + upsert -> insert when possible
- Closed
- is related to
-
SERVER-20380 Upsert is not atomic when inserting
- Closed
- related to
-
SERVER-10350 Atomicity of Upserts on multi field unique index
- Closed