Skip to content

fix: close client after query transport errors - #1203

Open
OrangeFlag wants to merge 1 commit into
ClickHouse:mainfrom
OrangeFlag:fix-pool-transport-error
Open

OrangeFlag wants to merge 1 commit into
ClickHouse:mainfrom
OrangeFlag:fix-pool-transport-error

Conversation

@OrangeFlag

Copy link
Copy Markdown
Contributor

Summary

Fixes query cleanup after transport-level failures.

Client.Do now closes the client after unsuccessful non-server-error queries, so a broken connection is not returned to chpool. Server-side ClickHouse exceptions still leave the connection reusable.

Added a regression test for a read-side transport failure.

Checklist

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG

@OrangeFlag

Copy link
Copy Markdown
Contributor Author

@kavirajk please take a look when you have time

@OrangeFlag

Copy link
Copy Markdown
Contributor Author

@chernser, maybe you could take a look?

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