SERVER-138422ClosedFixed

Convert oversized change stream events into error events when showErrorsAsEvents is set inside converting stage

With showErrorsAsEvents, a change stream event that exceeds the BSON size limit (~16MB) currently fails the stream exactly as on master. This ticket covers converting such oversized events into operationType:"error" events so the stream stays alive, and completing/hardening that path. The core conversion landed in the change stream error-conversion stage: - The stage serializes each delivered event through serializeChangeStreamEventForExecutor; an event exceeding the BSON size limit is con

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.