SERVER-136023ClosedWon't Do

Prevent interrupt delinquency in $facet and $lookup by checking for interrupt in the sub-pipeline drain loops

$facet and $lookup each run entire sub-pipeline executions inside one {{doGetNext()}} call. Sub-pipeline stages check interrupts every 128 {{getNext()}} calls via {{Stage::getNext}} -> {{{}ExpressionContext::InterruptChecker{}}}, but (a) sub-pipelines processing fewer than 128 docs may never trip the amortized checker (each sub-pipeline has its own {{ExpressionContext}} counter), (b) per-input plan build/optimize/translate cost is check-free, and (c) blocking sub-stages expose their full span in

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.