Skip to content

Use node ids instead of addresses in pipeline diagnostics - #126029

Merged
Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:remove-print-pipeline-addresses
Oct 16, 2026
Merged

Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:remove-print-pipeline-addresses

Conversation

@Algunenano

@Algunenano Algunenano commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

The ExecutingGraph::addEdge exception and the pipeline dump appended to it by PipelineExecutor labelled processors with their memory addresses, so that the endpoints of the broken edge could be matched against the dump even when getUniqID falls back to the _0 suffix (no CurrentThread). Following the review suggestion in the PR that added them, the exception now refers to the processor in the list by its graph node id, which is the same n{id} the dump uses, and names the missing peer by getUniqID. Memory addresses are internal state and do not belong in messages that reach users, so the with_addresses option of printPipeline is removed.

Related: #112745

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Version info

  • Merged into: 26.11.1.49-master (included in 26.11 and later)
  • Backported to: 26.10.2.18, 26.9.20.25

…tics

The `ExecutingGraph::addEdge` exception and the pipeline dump that
`PipelineExecutor` appends to it labelled processors with their memory
addresses, so that repeated processor classes stay distinguishable when
`CurrentThread` is not initialized and `getUniqID` falls back to `_0`.
The exception now names the processor in the list by its graph node id,
which is the same `n{id}` the dump uses. The missing peer is named by
`getUniqID`. Memory addresses no longer appear in either.

Remove the `with_addresses` option of `printPipeline`, its only user.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6025662]

Summary: ✅


AI Review

Summary

PR #126029 replaces processor addresses in malformed-pipeline diagnostics with dump node IDs and removes the with_addresses option from printPipeline. Reviewed head 60256627ed390717a619af125c6a27c1df32736f. The earlier numbering mismatch is fixed by calculating the current list position; its review thread has been resolved. No new actionable findings.

Missing context / blind spots
  • ⚠️ The focused diagnostic unit tests have no published results yet, and this checkout has no local build. Completed unit-test results would close this validation gap.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 15, 2026
`Node::processors_id` is never reused, while the pipeline dumps number
processors by their position in the current list. After processors are
removed at runtime the two diverge, so the exception could point to a
different node of the dump.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the comp-query-execution Runtime execution pipeline, processors, vectorized operators, resource management during execution. label Oct 15, 2026
@Manerone Manerone self-assigned this Oct 15, 2026
@Algunenano
Algunenano added this pull request to the merge queue Oct 16, 2026
Merged via the queue into ClickHouse:master with commit d270184 Oct 16, 2026
178 checks passed
@Algunenano
Algunenano deleted the remove-print-pipeline-addresses branch October 16, 2026 09:14
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 16, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 16, 2026
robot-ch-test-poll2 added a commit that referenced this pull request Oct 16, 2026
Cherry pick #126029 to 26.9: Use node ids instead of addresses in pipeline diagnostics
robot-clickhouse added a commit that referenced this pull request Oct 16, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 16, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 16, 2026
Backport #126029 to 26.9: Use node ids instead of addresses in pipeline diagnostics
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Oct 16, 2026
…-build-error-pipeline-dump

Resolve the conflict with ClickHouse#126029 in the `PipelineExecutor` constructor's
catch: keep the `LOGICAL_ERROR` guard and take master's `printPipeline` call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Algunenano added a commit that referenced this pull request Oct 19, 2026
Backport #126029 to 26.10: Use node ids instead of addresses in pipeline diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-query-execution Runtime execution pipeline, processors, vectorized operators, resource management during execution. pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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 v26.9-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants