Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Repl 2019-09-09
Description
Multi-field update op may fail because one field updates a subdocument or subarray field and the sub document/array doesn't exist (because it was deleted by a later op). In that case, the entire update failed to apply. Here's a concrete example.
Before initial sync, the doc is {y: [0]}
|
--------- start clone ---------
|
x = 1
|
x = 2, y.0 = 2 (multi-field update)
|
y = 3
|
--------- end clone -----------
|
The expected state is {x: 2, y: 3}
|
Attachments
Issue Links
- is related to
-
SERVER-38860 Positional array update behavior of applyOps on invalid field varies on different versions
-
- Closed
-