-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
SERVER-86205 changed shard targeting so that it re-uses the original command's CanonicalQuery rather than constructing a brand new one. The original CQ can include a sort spec, which means that the index bounds produced by query planning are not guaranteed to be ascending. This violated an assumption in the shard targeting code, and SERVER-86205 included a partial fix for the violation.
However, this was not sufficient; SERVER-95627 contains the complete fix. Now with 95627 complete, we should remove the partial fix from 86205. It's not incorrect to keep it around, but it's redundant and confusing to leave it in.
- related to
-
SERVER-95627 Index bounds in backward direction causes unionize to fail in collapseQuerySolution
- Closed