We clear the SBE plan cache when certain query knobs change (internalQueryPlanEvaluationMaxResults for example), so that the effects of those changes can be seen when queries are rerun. We should also clear the classic cache when query knobs change.
If users (or jstests) have to change these knobs for some reason, it would make sense for the SBE/Classic behavior to be consistent, and would allow the query knob settings to take effect.
- is related to
-
SERVER-113079 Integrate query knobs into the plan cache key
-
- Backlog
-
-
SERVER-121528 Create a callback that can be used to clear the classic plan cache when the value of a feature flag changes
-
- Backlog
-
-
SERVER-121530 Add test for CBR-chosen plans being in the cache, but the CBR feature flag is off
-
- In Code Review
-