SERVER-136798ClosedFixed

startAfter fails with NoMatchingDocument on the resume-token event: the "required" pre-image check is applied to the event the stream must start after

With {{fullDocumentBeforeChange: "required"}} (or {{fullDocument: "required"}}), a stream resumed with {{startAfter}} or {{resumeAfter}} applies the "required" check to the event the resume token points to. That event must not be read at all: the stream is supposed to continue after it, and it is never returned to the client. If that event is an update, replace or delete made before pre-images were enabled, the aggregate fails with {{NoMatchingDocument}} (47) before returning anything, althou

Affected Versions
Versions known to exhibit this issue
8.0.267.0.37
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10259.0.9
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
change-streamspre-imagesresume-token