-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
Repl 2019-08-12, Repl 2019-08-26
-
0
When a user executes applyOps with an update on the primary, this is treated as an upsert by default, therefore when the applyOps oplog entry is replayed on the secondary during initial sync it should also be treated as an upsert. However, it is not.
Fetching missing documents masks this bug, for now (see SERVER-42022). After this change, we no longer fetch missing documents when applying an applyOps oplog entry during initial sync, and initial sync still succeeds.
- related to
-
SERVER-42845 Change streams should return events for user-initiated applyOps commands
- Closed
-
SERVER-44450 Do not add fromMigrate field to applyOps insert oplog entries
- Closed