Repository navigation
Fix flaky 04625_hash_table_sizes_stats_table_expression_modifiers under randomized external aggregation - #111502
Conversation
…er randomized external aggregation With a randomized low `max_bytes_before_external_group_by` the shard-side aggregation spills to disk, which stops the hash-table-stats collection for the query, so the test reported 0 preallocated elements instead of the expected 650000. Pin external aggregation off. Failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110886&sha=e8f45ccc035836cbca5147cb6c7d9a37d6bb9d29&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 Related: #110886
|
Workflow [PR], commit [569cd0b] Summary: ✅ AI ReviewSummaryThis PR makes the two hash-table-stats flaky tests deterministic under randomized settings by pinning both external Final VerdictStatus: ✅ Approve |
…s_stats_table_functions too The sibling test `04509_hash_table_sizes_stats_table_functions` checks the same cold/hot `AggregationPreallocatedElementsInHashTables` invariant and was equally exposed to randomized low `max_bytes_before_external_group_by` / `max_bytes_ratio_before_external_group_by` thresholds: any spill stops hash-table-stats collection and zeroes the preallocation event. Pin both settings to 0 in its `settings` and `dist_settings` arrays, as already done for `04625`. Co-Authored-By: Claude Fable 5 <[email protected]>
|
@groeneai, investigate the failures in this run (all unrelated to this settings-only test fix; each fails regularly across many other PRs per CIDB):
Provide a fix in a separate PR (or file tracking issues). If a fix is already in progress, link it here. The |
|
Investigated all three. Confirmed: all are the
The structural capacity fix for this shard is already tracked in the open issue #111304 ("fix the runner RAM, not the ratio"), and two mitigations are already merged and have cleaned master: #110574 (0.7 ratio + reduced concurrency + 0.75 ratio for this job) and #110503 ( The |
|
The only failure on Related: #110133 AI review is ✅ Approve and there are no unresolved review threads — this is ready for a human merge decision. |
|
CI triage on `955837af` — the only non-green public results were infra, and both
Merged the latest |
|
CI triage on
Merged the latest AI review is ✅ Approve and there are no unresolved review threads — ready for a human merge decision. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix flaky
04625_hash_table_sizes_stats_table_expression_modifiers(and the sibling04509_hash_table_sizes_stats_table_functions) under randomized external aggregation.With a randomized low
max_bytes_before_external_group_bythe shard-side aggregation spills to disk, which stops the hash-table-stats collection for the query, so the test reported0preallocated elements instead of the expected650000(theno-final-preallocline). The randomized-settings diagnoser identified--max_bytes_before_external_group_by 62155255as the culprit. Pin external aggregation off in the test's fixed settings.The sibling test
04509_hash_table_sizes_stats_table_functionschecks the same cold/hotAggregationPreallocatedElementsInHashTablesinvariant and was exposed to the same flake, so the same two settings are pinned to0in both of its settings arrays as well (addressing review feedback).Failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110886&sha=e8f45ccc035836cbca5147cb6c7d9a37d6bb9d29&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29
Related: #110886
Version info
26.8.1.207(included in26.8and later)