Repository navigation
Allow Unfinished Processor Removal in Query Runtime - #115625
Conversation
|
Workflow [PR], commit [c78b532] Summary: ❌
AI ReviewSummaryThis PR teaches Findings❌ Blockers
Tests
Final VerdictNot ready: the new runtime contract is broader than what existing processors support, so the first unfinished detached source/transform can turn this into a LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 157/164 (95.73%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes23 object files changed (+22.95 KiB total), 0 added.
737 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units209 translation units recompiled, 2199 s compile time in total, 209 of them have a recent master baseline. |
Brings in #115800, which the re-landed change needs: processors queued for removal were left in the graph when `updatePipeline` returned `Cancelled`, or when more than one group became removable between two prepared nodes. Co-Authored-By: Claude Fable 5 <[email protected]>
Processor removal became deferred: `updatePipeline` only records `update.to_remove` into a pending group and `updateNode` retires the group once every processor in it reports `Finished`. Two paths leave a recorded group behind, so the processors stay in the pipeline until the whole query is destroyed: - `updatePipeline` records the group and then returns `Cancelled`, which makes `updateNode` return before it reaches the code that retires groups; - the retiring code handles a single group per prepared node, so a backlog can outlive the last `updateNode` call. Retire every group that is ready instead of one, and also do it on the way out when `updatePipeline` does not return `Done`. This is what `Processors.UpdatePipelineMultipleCoordinatorsMultithreaded` caught on master: it cancels the executor while 16 coordinators are cycling, so one of them gets its removal stranded and an extra source is still alive at the end of the test. https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=b16561cc816cf56cadd0c35ed9ad48964ad7758d&name_0=MasterCI&name_1=Unit%20tests%20%28amd_llvm_coverage%29 Caused by: ClickHouse#115625 Co-Authored-By: Claude Fable 5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch allows us to remove the pipeline subtree where not every processor has finished. In this case, the processor tree will not be removed until all processors have finished. This is needed for short FilterTransform circuit handling when this transform was not inlined into the streaming read round subpipeline's read step.
Workflow [PR]
Sync PR [sync-upstream/pr/115625]
Version info
26.8.1.1854(included in26.8and later)