Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploader: handle X-Clickhouse-Exception-Code header #138

Merged

Conversation

teqwve
Copy link
Contributor

@teqwve teqwve commented Jan 30, 2024

Hi,

we noticed that in case of an error ClickHouse sometimes can return a status code 200 with an actual error in X-Clickhouse-Exception-Code header. This PR adds failing upload when this header is present in the response.

We sometimes observed that happening after a timeout error on ClickHouse end. In the response there was a status code 200 and a 209 code in X-ClickHouse-Exception-Code ('socket timeout'). It caused a sporadic metric loss as ClickHouse didn't read the whole body and carbon-clickhouse considered the upload to be successful.

I've also found a similar issue created for ClickHouse tests - ClickHouse/ClickHouse#44885.

@Felixoid Felixoid merged commit 67d4abb into go-graphite:master Jan 31, 2024
7 checks passed
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.

2 participants