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

Ensure queryShapeHash is computed only on mongos in sharded clusters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-08-19, QE 2024-09-02, QE 2024-09-16, QE 2024-09-30

      Currently the queryShapeHash is computed on every shard, but there is no apparent reason to do that, plus it could lead to confusion because mongos queryShapeHash might differ from shards queryShapeHashes. Therefore, queryShapeHash should only be computed on mongos and tested that this is the case.

      Extra:
      Due to the 'requires_profiling' exclusion tag, jstests/core/query/query_settings/query_shape_hash_in_slow_query_logs.js is not allowed to run on sharded environments. This is because mongos does not support enabling the profiler. Thus, it would be better to split the test in 2 separate tests, one for the profiler and one for the slow query logs.

            Assignee:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Reporter:
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: