SERVER-83091ClosedFixed

$or query can trigger an infinite loop during plan enumeration

Certain $or queries can trigger an infinite loop in the {{PlanEnumerator}}. While the plan space can be quite large for indexed $or queries, we have logic which is supposed to bail out of plan enumeration once a certain number of alternatives have been generated. This logic is not kicking in correctly. Note that this only affects the so-called "lockstep $or" enumeration order which was first implemented in SERVER-50291. Lockstep $or enumeration is intended to make it more likely that the syst

Affected Versions
Versions known to exhibit this issue
7.0.27.0.37.2.0-rc1
Fixed Versions
Versions that include the fix
7.3.0-rc07.2.0-rc27.0.56.0.135.0.24
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp