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

Do not add fromMigrate field to applyOps insert oplog entries

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.0-rc2, 4.7.0
    • Replication, Write Ops
    • None
    • Fully Compatible
    • v4.4
    • Repl 2019-11-18, Repl 2019-12-02, Repl 2020-03-23, Repl 2020-04-06

    Description

      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.

      Attachments

        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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: