SERVER-127904ClosedGone away

Thread ExpCtx directly through to explain or PlanExecutorSBE

Currently, in explain.cpp we access the ExpCtx through the CanonicalQuery that is stored on the executor (e.g. PlanExecutorSBE) ([example#1|https://github.com/10gen/mongo/blob/ce3dae58890ef7aa9b82fe6423f4f0bc39c993cd/src/mongo/db/query/explain.cpp#L116], [example#2|https://github.com/10gen/mongo/blob/ce3dae58890ef7aa9b82fe6423f4f0bc39c993cd/src/mongo/db/query/explain.cpp#L144]). The code here makes the assumption that every executor will have a single CQ driving it and thus, it accesses the

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.