SERVER-138198Open

Track memory of buffered multiplanner trial results in peakTrackedMemBytes and serverStatus

During the classic multiplanner trial period, each candidate plan stores the results it produces in [BaseCandidatePlan::results|https://github.com/10gen/mongo/blob/2029eca66f86a397d5e7322e84732018705d7838/src/mongo/db/query/plan_ranker.h#L204]. These buffered results are added by the {{MultiPlanStage}} and is not measured or tracked anywhere: * It is not added to the operation's memory tracker, so it does not show up in {{peakTrackedMemBytes}} (slow query log, profiler, $currentOp, query stats)

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
qo-triage-week