Skip to content

Cherry pick #101991 to 26.1: Fix SLRU race bug in fs cache 26.1+ - #102263

Merged
robot-clickhouse-ci-2 merged 7 commits into
backport/26.1/101991from
cherrypick/26.1/101991
Apr 14, 2026
Merged

robot-clickhouse-ci-2 merged 7 commits into
backport/26.1/101991from
cherrypick/26.1/101991

Conversation

@robot-ch-test-poll4

Copy link
Copy Markdown
Contributor

Original pull-request #101991

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

kssenii and others added 6 commits April 7, 2026 21:23
- Increase value size from `randomString(100)` to `randomString(500)` so the
  dataset (~50 MB) is much larger than the 1 MB cache, ensuring every scan
  triggers eviction and continuous probationary ↔ protected queue transitions.
- Replace the `SELECT count()` benchmark + concurrent `SYSTEM CLEAR FILESYSTEM CACHE`
  loop with a simpler `SELECT sum(key)` benchmark. The cache-drop loop was
  racy and could suppress the very errors we want to detect.
- Change the error check from `system.errors` to `node.contains_in_log`
  because `chassert` failures in a debug or sanitizer build abort the server
  process, so `LOGICAL_ERROR` never reaches `system.errors` but always
  appears in the server log.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@robot-ch-test-poll4 robot-ch-test-poll4 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-bugfix Pull request with bugfix, not backported by default labels Apr 9, 2026
@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

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

@robot-clickhouse-ci-2
robot-clickhouse-ci-2 merged this pull request into backport/26.1/101991 Apr 14, 2026
@robot-clickhouse-ci-2
robot-clickhouse-ci-2 deleted the cherrypick/26.1/101991 branch April 14, 2026 20: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-bugfix Pull request with bugfix, not backported by default 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.

5 participants