Closed MikhailBurdukov closed 1 year ago
In the last commit, a behavior was added that allows users to reset the connection to a connected endpoint, which is described here. I also checked manually that the client is trying to reconnect to the same endpoint using options_.send_retries
, but I don't know how to implement this in the test, because as far as I understand, there are no tests that allow you to manipulate the connection or the `ClickHouse-server' directly. Does anyone have some ideas how to test such situation?
Discussed in direct messages:
virtual Endpoint Next() = 0;
and it is an endless generator of endpoints.Client Impl
. Number of connection attempts = endpoints.size() * send_retryAll this is done in the last commit
Specify multiple hosts for connection, to provide fault tolerance.
The endpoint is selecting according to
EndpointsIterationAlgorithm
, rn only RoundRobin approach is implemented.Ref #139