SERVER-131927ClosedFixed

Capture cursor read failures on mongod in query stats

Sub-ticket for SERVER-87657. Handle getMore failures for registered find/aggregate/change-stream cursors on mongod, where the query-stats key has already moved from OpDebug onto ClientCursor. Thread an errored flag through cursor dispose, set that flag in the getMore catch/error path, and pass it into writeQueryStatsOnCursorDisposeOrKill so the error is recorded during cursor teardown.

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.