-
Notifications
You must be signed in to change notification settings - Fork 573
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
driver: bad connection #336
Comments
same issue |
|
same issue. |
same issue with batch insert of data in transactions. here are debug logs from CH server (names in sql queries are cut out):
upd: nevermind. my issue is caused by HAProxy in front of the cluster. direct connection works like a charm. |
@sashayakovtseva did you find a solution with HAProxy? I have the same problem. |
nope, I switched to direct connection. |
Hi. I found inconsistent with database/sql in common case:
In other drivers (where connection checked in Begin()) I will get this error in Begin() and it will be retried (this logic is in database/sql). But in clickhouse driver (where as i see no real Begin() queries) I got ErrBadConn in Prepare() where no retry logic in database/sql.
The text was updated successfully, but these errors were encountered: