-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
ALL
-
-
QO 2024-03-18
Failing test: jstests/core/administrative/profile/profile_find.js .
Problem
When EOF optimization is available, MultiPlanner constructs the executor with `_multiPlanStage` and returns the executor directly. This causes the jstest failure because the specific stats returned by MultiPlanStats does not have `replanReason` field.
Approach
Consolidate both the stats MultiPlanStats and CachedPlanStats to have `replanReason` field and allow passing the replanReason into `_multiPlanStage`.
Note
After addressing the issue, re-enable the test core/administrative/profile/profile_find.js .
- related to
-
SERVER-85238 In classic_runtime_planner_for_sbe::CachedPlanner implement replanning for find queries
- Closed
-
SERVER-87769 In classic_runtime_planner_for_sbe fix replanning for $where
- Closed