Skip to content

Handle late ClickHouse HTTP exceptions - #403

Open
ruslandoga wants to merge 5 commits into
masterfrom
rd/clickhouse-http-errors
Open

Handle late ClickHouse HTTP exceptions#403
ruslandoga wants to merge 5 commits into
masterfrom
rd/clickhouse-http-errors

Conversation

@ruslandoga

@ruslandoga ruslandoga commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Detects ClickHouse exceptions that are appended after a 200 OK response has begun, including the deliberate connection close used to signal an incomplete HTTP response. For the default RowBinaryWithNamesAndTypes format, the response exception tag is passed into the decoder and the trailer is validated against that tag, its recorded message length, and ClickHouse's 16 KiB bound before returning Ch.Error; unmatched truncation remains a Mint transport error. Gzip and Zstandard RowBinary response bodies are supported, while non-RowBinary formats retain their existing behavior. Adds a tagged real-ClickHouse regression test and excludes it on the older CI server version.

@ruslandoga ruslandoga changed the title Add regression test for late ClickHouse HTTP exceptions Handle late ClickHouse HTTP exceptions Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant