Fix possible CHECKSUM_DOESNT_MATCH (and others) during replicated fetches#62987
Merged
alexey-milovidov merged 4 commits intoClickHouse:masterfrom Apr 28, 2024
Merged
Conversation
Contributor
|
This is an automated comment for commit cf1451e with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
Signed-off-by: Azat Khuzhin <[email protected]>
Signed-off-by: Azat Khuzhin <[email protected]>
Signed-off-by: Azat Khuzhin <[email protected]>
Previously HTTP server does not tries to send exception if something had been written to the client already, but after rewriting to "zero-copy" HTTP implementation (back in ClickHouse#19516) this got broken, and you can get pretty "dangerous" at least at first glance errors, like: - Malformed chunked encoding - or most likely to CHECKSUM_DOESNT_MATCH error This is not crucial because it will never pass checksum checks, but still icky. So let's fix it. Signed-off-by: Azat Khuzhin <[email protected]>
6bc15a3 to
cf1451e
Compare
azat
added a commit
to azat/ClickHouse
that referenced
this pull request
Dec 19, 2025
…ers) during replicated fetches It is not possible to fix it reliably after server started to write exceptions in the response body in case of errors, so let's just revert all of this. The DataPartsExchange is safe anyway, since it has proper checksums.
alexey-milovidov
added a commit
that referenced
this pull request
Dec 20, 2025
…etches-fix Revert #62987 - Fix possible CHECKSUM_DOESNT_MATCH (and others) during replicated fetches
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):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix possible CHECKSUM_DOESNT_MATCH (and others) during replicated fetches
Previously HTTP server didn't try to send an exception if something had
been written to the client already, but after rewriting to "zero-copy"
HTTP implementation (back in #19516) this got broken, and you can get
pretty "dangerous" at least at first glance errors, like:
This is not crucial because it will never pass checksum checks, but
still icky. So let's fix it.
P.S. this PR also adds failpoint for the test, but maybe it does not worth it, then I can drop the failpoint and the test itself.