-
Type: Bug
-
Resolution: Unresolved
-
Priority: Critical - P2
-
None
-
Affects Version/s: 8.1.0-rc0, 8.0.0
-
Component/s: Distributed Query Execution
-
None
-
Query Execution
-
ALL
I was looking at the eligibility checks for PlanExecutorExpress and noticed a bug. The express path should only support shard filtering for unique, single-field indexes (see SERVER-87016). This guarantees that the plan only reads a single key, which the shard filter may or may not filter out.
However, I believe there is a bug where the express path would permit using a unique, multi-field index. Depending on the presence of orphans, this could lead to a situation where we produce incorrect query results
- related to
-
SERVER-87016 Extend express path to support findOne queries with non-unique indexes that require shard filtering
- Open