SERVER-121207ClosedFixed

tassert in plan enumerator when empty path and $elemMatch are used

The repro script attached reaches a tassert in the plan enumerator, "9074700: RelevantTag is not assigned to the match expression node". From what I've tried, the empty path + elemMatch seem to be required to reach this issue

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.0.0-rc08.0.377.0.498.3.18
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
found-by-pbtqo-triage-week