SERVER-41196ClosedFixed

Mongos invariant failure crash with change streams startAfter

Mongos crashes with this invariant failure: Attached is [^mongos-python-1720-crash.log] which includes the full mongos log. The reproduction is fairly simple: # Start a change stream on collection "x", drop "x", and obtain the invalidate change stream document's resume token # Start a new change stream passing the previous resume token to startAfter. # Run a getMore on the new change stream -> crash. In code: {code:js} MongoDB Enterprise mongos> var cs = db.test.watch([{'$match

Affected Versions
Versions known to exhibit this issue
4.1.11
Fixed Versions
Versions that include the fix
4.2.0-rc34.3.1
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
query-44-grooming