SERVER-136679ClosedFixed

Idle $search cursors on views are not disposed at shutdown and stall mongod for the executor timeout

h3. Summary An idle {{$search}} cursor opened with {{batchSize: 0}} against a *view* (view definition contains {{$search}}) is not marked as holding the mongot task executor, so it is not disposed during shutdown. mongod then stalls for the full {{searchTaskExecutorShutdownTimeoutMS}} backstop (default 60s), or indefinitely if the timeout is disabled ({{0}}). h3. Background SERVER-129849 added {{ClientCursorParams::mayHoldMongotTaskExecutor}} and disposes idle cursors holding mongot executo

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-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-searchgreenerbuildquick-tech-debt