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

When applying applyOps commands during initialSync, do not override alwaysUpsert flag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Repl 2018-01-15, Repl 2019-10-07, Repl 2019-10-21, Repl 2019-12-16

      Description

      Right now if we have an applyOps command with an 'alwaysUpsert: false' field, it will be applied with 'alwaysUpsert: false' both during steady state replication and in initial sync. This has the same idempotency problem as applying ordinary updates during initial sync, which is that the updated document may not be there because it might have been deleted on the sync source after the oplog entry. So we should ignore the applyOps alwaysUpsert field during initial sync.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              matthew.russotto Matthew Russotto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: