Repository navigation
Merging #49066 (Better error handling during loading of parts) - #49430
Merged
Merged
Conversation
Contributor
|
This is an automated comment for commit 824591f with description of existing statuses. It's updated for the latest CI running
|
nikitamikhaylov
approved these changes
May 3, 2023
ylw510
pushed a commit
to ylw510/ClickHouse
that referenced
this pull request
Oct 24, 2026
… broken At server startup and on ATTACH TABLE, one failed read (EIO) of a part metadata file (checksums.txt, columns.txt, count.txt, serialization.json, ...) made loadDataPart mark the part broken on the first attempt, so it was renamed to detached/broken-on-start_<name> and its rows disappeared from the table until manual repair. loadDataPart marks a part broken on any error that isRetryableException rejects, and EIO is rejected, so the retries of loadDataPartWithRetries never engaged. An I/O error (ErrnoException with EIO, or std::filesystem::filesystem_error with io_error from stat) is now rethrown by loadDataPart while attempts remain, so the existing three attempts absorb a transient error. On the last attempt the part is marked broken as before: a persistent error still detaches the part instead of failing the whole table load, which keeps the behaviour chosen in ClickHouse#49430. isRetryableException itself is not changed, because its other callers (readers, part check, fetch) must keep treating a persistent I/O error as a broken part. The "needs manual correction" log line is not printed for an I/O error. The regression test uses a new once-only failpoint that throws EIO while loading part metadata. It is tagged no-parallel, no-fasttest as required for failpoint tests by the style check. Closes ClickHouse#127233 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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):
Merging #49066.