Skip to content

Cherry pick #99042 to 26.2: Fix crash in CachedOnDiskReadBufferFromFile destructor#99234

Merged
robot-clickhouse merged 2 commits intobackport/26.2/99042from
cherrypick/26.2/99042
Mar 11, 2026
Merged

Cherry pick #99042 to 26.2: Fix crash in CachedOnDiskReadBufferFromFile destructor#99234
robot-clickhouse merged 2 commits intobackport/26.2/99042from
cherrypick/26.2/99042

Conversation

@robot-clickhouse
Copy link
Copy Markdown
Member

@robot-clickhouse robot-clickhouse commented Mar 11, 2026

Original pull-request #99042

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


Note

Low Risk
Low risk null-check fix: prevents a potential crash when destructor tries to log cache activity without an initialized state. No behavior change beyond skipping the log record in that edge case.

Overview
Prevents a crash in CachedOnDiskReadBufferFromFile destruction by only calling appendFilesystemCacheLog(...) when state is present, avoiding dereferencing a null state while still cleaning up/finishing any remaining file segments.

Written by Cursor Bugbot for commit 587e799. This will update automatically on new commits. Configure here.

@robot-clickhouse robot-clickhouse 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 labels Mar 11, 2026
@robot-clickhouse robot-clickhouse merged commit 4012d39 into backport/26.2/99042 Mar 11, 2026
129 of 130 checks passed
@robot-clickhouse robot-clickhouse deleted the cherrypick/26.2/99042 branch March 11, 2026 05:32
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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants