Repository navigation
Pin enable_adaptive_codec_selection in 05293_autopr_statistics_plan_based - #133069
Merged
Merged
Conversation
…_plan_based` The cost model works off estimated compressed bytes, and adaptive codec selection, now randomized in stateless tests, changes them, so the second run stops adopting parallel replicas. The sibling `05262` was already pinned the same way. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=129544&sha=10b2b5fe60611b692e06c8babb025f3cc4dbebca&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29 PR: #129544 Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 52da073)
Contributor
|
Workflow [PR], commit [a6c84af] Summary: ✅ AI ReviewSummaryThe PR pins Missing context / blind spots
Final VerdictStatus: ✅ Approve |
nickitat
enabled auto-merge
November 19, 2026 20:54
devcrafter
approved these changes
Nov 19, 2026
This was referenced Nov 20, 2026
Closed
PedroTadim
pushed a commit
to groeneai/ClickHouse
that referenced
this pull request
Nov 20, 2026
The scheduler avoids deadlocks by always letting the first incomplete row group schedule its tasks, whatever the memory usage. Since e7a7ac3 this exemption applied only from `ColumnData` on. Before that, a later row group could get through the bloom filter and `Dictionary` stages first and hold the `Dictionary` stage's memory. The first incomplete row group then waited for that memory in `Dictionary`, while the later row group waited in `ColumnData` to become first, and the reader threw `Deadlock in Parquet::ReadManager`. This is reachable with a small `input_format_parquet_memory_high_watermark`, which CI randomizes since ClickHouse#132712. The stages before `ColumnData` handle the whole row group at once, so the first incomplete row group is privileged in them unconditionally, as it was before e7a7ac3. The new test deadlocked in 4 of 10 runs without the fix, and passed 20 of 20 (with and without settings randomization) with it. In a `clickhouse-local` stress run on a 298-row-group file: 100 deadlocks in 6000 runs before, 0 in 6000 after. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133069&sha=a6c84af029f9bdc3526b34b1df2eae0b4b281294&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20plan-based%2C%20s3%20storage%2C%20parallel%29 PR: ClickHouse#133069 Closes: ClickHouse#133046 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
05293_autopr_statistics_plan_basedfails whenever stateless tests randomizeenable_adaptive_codec_selection = 1, which they do since 8d693e5. The AutoPR cost model works off estimated compressed bytes, so adaptive codecs change whether the second run adopts parallel replicas (second_run_used_replicasbecomes0). CI's settings minimizer namesenable_adaptive_codec_selection 1together withquery_plan_join_swap_table false.Pin
enable_adaptive_codec_selection = 0on both tables, the same way the sibling05262_autopr_statistics_follow_coordinated_readwas pinned in 82c9514. Verified locally: with the culprit settings it fails 3/3 with1and passes 3/3 with0; 10/10 under randomization.CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=129544&sha=10b2b5fe60611b692e06c8babb025f3cc4dbebca&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29
Related: #129544
Related: #125888
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/133069]
Version info
26.11.1.2910-master(included in26.11and later)