Repository navigation
Revert "Revert "Allow Unfinished Processor Removal in Query Runtime"" - #115810
Michicosun merged 4 commits into
Conversation
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: #115625 Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [5702ca0] Summary: ❌
AI ReviewSummaryThis PR reverts Findings❌ Blockers
Tests
Final VerdictChanges requested. The cancellation-specific regression from LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 183/189 (96.83%) · Uncovered code |
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]>
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 sizes4 object files changed (+21.93 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 units202 translation units recompiled, 2013 s compile time in total, 202 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.92 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Reverts #115809
Must include #115800
Workflow [PR]
Sync PR [sync-upstream/pr/115810]
Version info
26.8.1.1890(included in26.8and later)