Add JS integration test for PQS $natural hint override of maxEstimatedScanBytes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • 9.0.0-rc1
    • 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

            Assignee:
            Kyle Burgess
            Reporter:
            Kyle Burgess
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: