You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve keeper failure injection and tolerance - #56389
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Reworked tolerance to keeper failures
Deprecated insert_keeper_*, backup_restore_keeper*, distributed_ddl_keeper_* settings. They have been replaced by common settings (keeper_max_retries, keeper_fault_injection_probability...) that work in any (supported) operation.
Backups (ON CLUSTER): Fix reconnection after keeper failure
Insert/attach (replicated) parts: Made them more reliable to keeper failures. If the connection to keeper fails when pushing metadata, it will now be able to retry if the data wasn't written (before it would only continue if it was written).
Insert/attach (replicated) parts with quorum: The process can now recover from keeper failures when verifying the quorum.
CI: Increment the ratio of keeper failures (from 1% to 10%) to help catch more errors. Made them also retry faster so it don't affect timings too much.
Builds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process
Normally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here
Checks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc
Runs stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts
My philosophy behind this PR has become "given enough retries allowed, CH should be able to recover from any keeper HW error". It's going to be painful. I'll need to limit the scope to what's already there and then try to introduce retries on other parts as needed.
No, it's still about backups, but backups do many different operations :D I want to investigate if there is a simpler way to introduce both keeper faults and retries in more places
No, it's still about backups, but backups do many different operations :D I want to investigate if there is a simpler way to introduce both keeper faults and retries in more places
I'd suggest doing it gradually, in general. But first need to look at the changes in more details.
I'd suggest doing it gradually, in general. But first need to look at the changes in more details.
👍 I'm starting by adding (always disabled) faults to ReplicatedMergeTree. It means using ZooKeeperWithFaultInjection instead of Zookeeper in lots of calls
The tests should be green right now (there might be some that I've broken with more failures, but let's see). I'm pushing some extra changes to see what happens when we add faults also to async keeper requests and I'll start moving subset of changes into smaller PRs so it's easier to review and reason about.
Quorum handling moved to #57986. The only thing missing from this draft is the unification of settings to have only a single set of settings for zk faults and retries for all operations: now only backup and insert, but ideally more will be added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
insert_keeper_*,backup_restore_keeper*,distributed_ddl_keeper_*settings. They have been replaced by common settings (keeper_max_retries,keeper_fault_injection_probability...) that work in any (supported) operation.Documentation entry for user-facing changes