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

Obey read preference and utilize readConcern during lookup of an update post image during change stream

    • Fully Compatible
    • ALL
    • v3.6
    • Repl 2017-11-13, Repl 2017-12-04

      When using a change stream with fullDocument='updateLookup' against a sharded collection, the lookup will happen from mongos to the shards. This lookup should obey the read preference of the original command.

      We should also use readConcern majority for this update, and use afterClusterTime to ensure we don't target to a secondary which is lagged behind the node that generated the change event.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: