SERVER-139400In Progress

Deliver the invalidate event after a converted failure

The problem: for change streams opted into showErrorsAsEvents, a user stage failing while processing the invalidate event swallowed the invalidate. The client never saw it and never learned the stream had ended — it kept waiting on a silently dead stream (zombie). The fix: the failure still converts to an error event (errors keep flowing), and the invalidate event is re-delivered right after — so the client sees the stream end and closes cleanly.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.