Skip to content
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

zookeeper::connect failed to handle DNS failures #3201

Closed
dqminh opened this issue Sep 24, 2018 · 2 comments
Closed

zookeeper::connect failed to handle DNS failures #3201

dqminh opened this issue Sep 24, 2018 · 2 comments
Assignees

Comments

@dqminh
Copy link
Contributor

dqminh commented Sep 24, 2018

We had a case where some nodes in zookeeper cluster were pulled along with their DNS names, so some DNS names declared in zookeeper configuration becomes invalid. This seems to cause the clickhouse tables in some nodes to be readonly.

Our clickhouse version is 1.1.54388

What we see in the logs is that nodes failed to handle DNS errors

<Error> some_tables (ReplicatedMergeTreeRestartingThread): void DB::ReplicatedMergeTreeRestartingThread::run(): Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = No address found: node1.zookeeper, e.what() = No address found
....
<Error> executeQuery: Code: 242, e.displayText() = DB::Exception: Table is in readonly mode, Stack trace:
....
<Error> ConfigReloader: Error loading config from `/etc/clickhouse-server/config.xml': Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Exception: Failed to preprocess config '/etc/clickhouse-server/config.xml': No address found: node1.zookeeper, e.what() = Exception

We do have multiple zookeeper servers declared in config.xml. Any idea why it bailed after failing to query only 1 name ?

@alexey-milovidov alexey-milovidov self-assigned this Sep 24, 2018
@alexey-milovidov
Copy link
Member

Yes, in case of DNS errors, it fails too early and no failover is performed.

@alexey-milovidov
Copy link
Member

This will help: 17b8e20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants