Skip to content

Cherry pick #113509 to 26.6: Add a dedicated thread pool for lightweight snapshot creation - #114240

Merged
hanfei1991 merged 6 commits into
backport/26.6/113509from
cherrypick/26.6/113509
Aug 11, 2026
Merged

hanfei1991 merged 6 commits into
backport/26.6/113509from
cherrypick/26.6/113509

Conversation

@robot-clickhouse

Copy link
Copy Markdown
Member

Original pull-request #113509

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

hanfei1991 and others added 5 commits August 5, 2026 16:58
So snapshot creation is not starved by a concurrent heavy BACKUP sharing the BACKUP pool.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Isolating only the per-file CREATE_SNAPSHOT pool was not enough: the top-level
BackupStarter::doBackup runs for the whole operation on ASYNC_BACKGROUND_BACKUP
(sized backup_threads), so a concurrent heavy BACKUP could still starve the
snapshot before it ever reaches CREATE_SNAPSHOT (e.g. backup_threads = 1).
Route snapshot creation to a dedicated ASYNC_BACKGROUND_CREATE_SNAPSHOT pool.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…thread-pool

Add a dedicated thread pool for lightweight snapshot creation
@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 Aug 10, 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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants