Skip to content

Reset query metadata cache before finalizing pipeline in BlockIO::onFinish#97488

Merged
alexey-milovidov merged 12 commits into
masterfrom
fix-blockio-onfinish-query-metadata-order
Mar 6, 2026
Merged

Reset query metadata cache before finalizing pipeline in BlockIO::onFinish#97488
alexey-milovidov merged 12 commits into
masterfrom
fix-blockio-onfinish-query-metadata-order

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Feb 20, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not For Changelog

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

Fix teardown order in BlockIO::onFinish: reset query_metadata_cache before pipeline finalization to avoid invalid storage/context access during pipeline destruction.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

CI report

@clickhouse-gh

clickhouse-gh Bot commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [bb271a2]

Summary:

job_name test_name status info comment
Stateless tests (amd_msan, WasmEdge, parallel, 2/2) failure
Server died FAIL cidb
Logical error: Not-ready Set is passed as the second argument for function 'A (STID: 0250-41a5) FAIL cidb

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Feb 20, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Can't construct a test, but this reproduces rarely in CI.

alexey-milovidov and others added 3 commits February 21, 2026 05:05
… link

The "Finish workflow" check requires Bug Fix PRs to include new or
changed tests. This is too strict for PRs that fix CI failures, where
the existing CI already serves as the test. Allow the check to pass
if the PR description contains a link to a CI report
(`s3.amazonaws.com/clickhouse-test-reports`), e.g. as in
#97554

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread src/QueryPipeline/BlockIO.cpp
):
if has_ci_report_link(pr_body):
print(
"No new tests have been added, but the PR description has a link to a CI report - pass"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@azat azat self-assigned this Feb 22, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@azat, ok, let's assume this does not fix anything. I've changed the category to "Not for changelog". Is this change good as a cosmetic change, at least to not confuse the next person who will investigate this error?

@alexey-milovidov alexey-milovidov removed pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-critical-bugfix labels Feb 27, 2026
@alexey-milovidov alexey-milovidov merged commit 1169943 into master Mar 6, 2026
146 of 149 checks passed
@alexey-milovidov alexey-milovidov deleted the fix-blockio-onfinish-query-metadata-order branch March 6, 2026 06:28
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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