-
Type:
Task
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Overview
The JS test in jstests/noPassthrough/query/max_estimated_scan_bytes.js covers command-level $natural hint overrides (tests 7, 7b, 7c) but does not exercise the PQS (Query Settings) $natural hint path in applyQuerySettingsNaturalHintsForCollection.
Scope of Work
Add integration tests that:
- Set a Query Setting with $natural hint for a collection above the maxEstimatedScanBytes threshold
- Assert the query succeeds (rejection bypassed by PQS)
- Assert query.maxEstimatedScanBytes.rejectedAndOverridden increments correctly
- Cover both main collection (find) and $lookup foreign collection cases
Related
- PR #57108 /
SERVER-127688— code under test
- is related to
-
SERVER-127688 Reject queries that will perform a full COLLSCAN on a large collection
-
- Closed
-
- related to
-
SERVER-127688 Reject queries that will perform a full COLLSCAN on a large collection
-
- Closed
-
-
SERVER-131150 Complete TODO listed in SERVER-130345
-
- Closed
-