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

Do not add fromMigrate field to applyOps insert oplog entries

    • Fully Compatible
    • v4.4
    • Repl 2019-11-18, Repl 2019-12-02, Repl 2020-03-23, Repl 2020-04-06

      SERVER-42630 describes a case where an update entry will be written to the oplog as part of an applyOps but the actual performed operation may be an insert. This can be misleading or wrong for change streams. Currently change streams ignore user-generated applyOps entries but SERVER-42845 tracks the work to change that.

      There are some comment threads on that ticket describing why, and judah.schvimer offers a proposed solution in this comment.

        1. apply_ops_upsert_with_migrate_and_delete.js
          5 kB
        2. apply_ops_upsert_with_migrate.js
          3 kB
        3. apply_ops_upsert.js
          3 kB

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: