SERVER-138388ClosedFixed

Add test covering change stream updateLookup fullDocument for shard-key-changing updates (legacy vs optimized)

h2. Overview Add a regression test pinning the update event's {{fullDocument}} for updates that change the shard key, with {{fullDocument: "updateLookup"}}, comparing the optimized updateLookup flag on and off. h2. Background [REP-8114|https://jira.mongodb.org/browse/REP-8114] (mongosync server-side hashing) found update events whose shard key value changed arriving without a {{fullDocument}} on released 9.0.x. That is the legacy lookup's design: it matches on the event's {{documentKey}}, which

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.