Skip to content

Cherry pick #98792 to 26.2: Fix crash in system tables - #99452

Merged
robot-ch-test-poll3 merged 15 commits into
backport/26.2/98792from
cherrypick/26.2/98792
Mar 20, 2026
Merged

robot-ch-test-poll3 merged 15 commits into
backport/26.2/98792from
cherrypick/26.2/98792

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #98792

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

grantholly-clickhouse and others added 14 commits March 4, 2026 14:07
Add a `datalake_try_get_table_return_nullptr` failpoint that makes
`DatabaseDataLake::tryGetTableImpl` return nullptr, simulating a
metadata fetch failure. Use it in a new integration test that exercises
the three `system.tables` query paths (engine filter, `SELECT *`,
`count(engine)`) to verify no crash occurs.

Also update the stale comment on `IDatabaseTablesIterator::table`
which referenced the removed `DatabaseLazy` — the actual current
source of nullptr is `DatabaseDataLake`.

ClickHouse/clickhouse-core-incidents#1434
@robot-ch-test-poll robot-ch-test-poll added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-critical-bugfix labels Mar 13, 2026
@robot-ch-test-poll

Copy link
Copy Markdown
Contributor Author

Dear @pamarcos, @grantholly-clickhouse, this cherry-pick PR has not been updated for 3d0h9m48s. Please resolve the conflicts to backport #98792, or close this PR if the backport is no longer needed. This PR will be automatically closed after 7 days of inactivity.

@robot-ch-test-poll3
robot-ch-test-poll3 merged this pull request into backport/26.2/98792 Mar 20, 2026
@robot-ch-test-poll3
robot-ch-test-poll3 deleted the cherrypick/26.2/98792 branch March 20, 2026 16:26
@clickhouse-gh clickhouse-gh Bot added the ready-for-backport PR is eligible for backporting (merged 7+ days ago, not reverted) label Mar 27, 2026
@maxknv maxknv removed the ready-for-backport PR is eligible for backporting (merged 7+ days ago, not reverted) label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants