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