Client fault tolerant connection#12
Client fault tolerant connection#12DeKinci wants to merge 8045 commits intomanaged-feature/automatic-server-choosingfrom
Conversation
src/Client/ClientBase.h
Outdated
There was a problem hiding this comment.
Please use more common way:
String host_with_port;
String delimiter = ":";
src/Client/ClientBase.h
Outdated
There was a problem hiding this comment.
delimiter_pos != std::string::npos
src/Client/ClientBase.h
Outdated
There was a problem hiding this comment.
You can move it also inside if and separately assign hostPort.host to host_with_port in else branch so that not to mess with host_with_port.substr(0, std::string::npos)
src/Client/ClientBase.h
Outdated
There was a problem hiding this comment.
I think it's better to delete the old host field
There was a problem hiding this comment.
There is no host field in ClientBase. The reason why I add this field in ClientBase, you can read our discussion in old PR: #4 (comment)
programs/client/Client.cpp
Outdated
There was a problem hiding this comment.
Is it better to set all the hosts and ports instead of just one?
There was a problem hiding this comment.
config can't store std::vector , only String, Int and other simple types. I wrote about this in this PR: #4 (comment)
programs/client/Client.cpp
Outdated
There was a problem hiding this comment.
It may be easier to read with if instead of ternary operator
programs/client/Client.cpp
Outdated
There was a problem hiding this comment.
Also need rebase on new master and tests
94e48b0 to
962d851
Compare
fix the run command and add example
Before this patch current_user/current_address will be preserved from the previous query. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
Update list-versions.sh, update version_date.tsv
…-for-show-grants Fix checking grants for SHOW GRANTS
Cmake leftovers cleanup
…ssword Add 'clickhouse-client --password' comment to the scripts used in Qui…
Disable data skipping indexes by default for queries with FINAL
3253ae1 to
c1df291
Compare
…rays Fix consecutive backward seeks in seekable read buffers
…database-memory Fix wrong engine in SHOW CREATE DATABASE with engine Memory ClickHouse#34225
Add table function format(format_name, data)
Add options for clickhouse-format.
Add composability to casting and index operators
Fix clang tidy
…-fault-tolerant-connection
Support UUID in MsgPack format
…temp-tables-via-grpc Fix inserting to temporary tables via gRPC.
Update clickhouse-keeper.md
…metadata Better local metadata comparison with ZooKeeper metadata
Fix segfault in schema inference from url
add function addressToLineWithInlines
Fix various issues when projection is enabled by default
Method called on already moved
Use UTC in docker images
Revert "Merge pull request ClickHouse#34373 from ClickHouse/docker-tz"
Add submodule minizip
…-fault-tolerant-connection
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...
Parameter
hostcan accept multiple hosts. In case of unavailability of one of them, the client will try to connect to the next one.Detailed description / Documentation draft:
...
When multiple addresses are passed to the
hostargument and the first one is unavailable, the console client will try to connect to the next one.