Skip to content

Do not use PipelineExecutor directly - #117661

Merged
Michicosun merged 6 commits into
masterfrom
use_completed_pipeline_executor
Sep 3, 2026
Merged

Michicosun merged 6 commits into
masterfrom
use_completed_pipeline_executor

Conversation

@Michicosun

@Michicosun Michicosun commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

This patch unifies the use of pipeline executors. After this patch, the internal PipelineExecutor will be used only by wrappers like pulling, pushing, and completed executors; outer code must use wrappers instead of calling the internal implementation.


Workflow [PR]
Sync PR [sync-upstream/pr/117661]

Version info

  • Merged into: 26.9.1.632 (included in 26.9 and later)

@clickhouse-gh

clickhouse-gh Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fa56a2b]

Summary: ✅


AI Review

Summary

This PR replaces a few direct completed-pipeline PipelineExecutor call sites with CompletedPipelineExecutor, preserves the old no-accounting behavior for external-table transport by explicitly calling disableReadProgress(), and adds the needed lifetime fixes where the wrapper now keeps the underlying PipelineExecutor alive until its own destructor. I did not find a remaining correctness or lifecycle issue in the current head.

Missing context / blind spots
  • ⚠️ The full CI matrix for commit fa56a2bd was still running on 2026-09-03, so this verdict is based on code inspection plus the already-green Fast test, Style check, and Build profile diff signals.
Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

Measured on commit fa56a2b.

Metric Baseline Current Δ
Lines 88.70% 88.70% +0.00%
Functions 92.10% 92.10% +0.00%
Branches 81.00% 81.00% +0.00%

Changed lines: Changed C/C++ lines covered: 86/87 (98.85%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 2, 2026
Comment thread src/Client/Connection.cpp Resolved
@clickhouse-gh

clickhouse-gh Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing fa56a2bd5 with master a748a4544 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

974 translation units recompiled, 7524 s compile time in total, 974 of them have a recent master baseline.

Median compile-time ratio to the baselines is ×1.07 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +453.0 s (+6%) in total before that adjustment.

Job report

@Michicosun
Michicosun enabled auto-merge September 3, 2026 15:31
@Michicosun
Michicosun added this pull request to the merge queue Sep 3, 2026
Merged via the queue into master with commit e903c5a Sep 3, 2026
174 checks passed
@Michicosun
Michicosun deleted the use_completed_pipeline_executor branch September 3, 2026 18:46
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants