-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
v8.0
-
QE 2024-08-19, QE 2024-09-02, QE 2024-09-16, QE 2024-09-30
-
200
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.