ClickHouse / ClickHouse/clickhouse-cpp
Automatic reconnect ignores settings applied for the connection
Open
bug
- Dominant language
- C
- Stars
- 382
- Forks
- 209
- Avg merge
- 3h 58m
- Merged PRs (30d)
- 12
Description
`Client::Impl::RetryGuard` performs automatic connection resets so the application code doesn't have a chance to restore expected connection settings applied before executing the current request.
For example, `SET mutations_sync=2`, automatic reconnect, `ALTER TABLE` sequence causes mutations to be executed asynchronously when the application assumes synchronous execution of the mutation.
It looks like connection settings should be stored in the Client::Impl and they should be re-applied in case of such reconnect before executing the client query.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.