Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-102079

PQS passthroughs should use queryPlanner verbosity

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-03-17, QE 2025-03-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Some PQS passthrough test suites execute explain commands.
      For example: https://github.com/mongodb/mongo/blob/0a68308f0d39a928ed551f285ba72ca560c38576/jstests/libs/override_methods/implicit_query_settings_fallback.js#L36

      By default raw explain command have the highest verbosity "allPlansExecution".

      However, tests only check basic plans that are returned when using lowest "queryPlanner" verbosity.

      We should add verbosity parameter to getExplainCommand and use it to save some resources and also reduce side-effects of these passthroughs, potentially enabling more tests.

            Assignee:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: