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

Re-resolve hostnames as fallback when all hosts are unreachable #224

Open
wprzytula opened this issue Jul 3, 2023 · 3 comments
Open

Re-resolve hostnames as fallback when all hosts are unreachable #224

wprzytula opened this issue Jul 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working DNS

Comments

@wprzytula
Copy link

wprzytula commented Jul 3, 2023

If all nodes in the cluster change their IPs at one time, driver can no longer ever contact the cluster; the only solution is to restart the driver. A fallback should be added to the control connection reconnect logic so that when no known host is reachable, all hostnames among initial contact points are reresolved and control connection is attempted to be opened to any of them. If this succeeds, a metadata fetch is issued normally and the whole cluster is discovered with its new IPs.

An analogous feature has been merged to gocql lastly: apache/cassandra-gocql-driver#1708

@mykaul mykaul changed the title Reresolve hostnames as fallback when all hosts are unreachable Re-resolve hostnames as fallback when all hosts are unreachable Jul 3, 2023
@avelanarius avelanarius self-assigned this Jan 15, 2024
@roydahan roydahan added DNS enhancement New feature or request labels Jun 13, 2024
@roydahan
Copy link
Collaborator

In scylla-4.x we should have the parameter called advanced.resolve-contact-points which should take care of that.
So, if it works this enhancement should be done only for scylla-3.x

@roydahan roydahan assigned Bouncheck and unassigned avelanarius Jun 13, 2024
@mykaul
Copy link

mykaul commented Aug 26, 2024

This needs to get some attention. It was solved in most drivers already, not in Java 3.x.

@dkropachev
Copy link
Collaborator

It is blocked by #333 and #334

@mykaul mykaul added bug Something isn't working and removed enhancement New feature or request labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DNS
Projects
None yet
Development

No branches or pull requests

6 participants