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

Unable to discover cluster nodes with an empty rack name #1706

Open
rgooding opened this issue Jun 20, 2023 · 0 comments
Open

Unable to discover cluster nodes with an empty rack name #1706

rgooding opened this issue Jun 20, 2023 · 0 comments

Comments

@rgooding
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Cassandra are you using?

3.11.8, 4.0.3

What version of Gocql are you using?

1.5.2

What version of Go are you using?

1.20.3

We have a client who is using gocql to connect to a Cassandra cluster which has been configured with an empty rack name on all nodes. What we are seeing is that gocql is unable to discover the cluster topology and it only sends requests to the initial contact point(s).
When using the Java driver against this cluster it works just fine and discovers all of the nodes correctly. The difference appears to be that they filter out nodes that have a NULL rack name in system.peers[_v2] and gocql filters out nodes with an empty string in the rack name.

I have been able to reproduce this in a lab environment on Cassandra 3.11 and 4.0 by using GossipingPropertyFileSnitch and setting the rack to an empty string in cassandra-rackdc.properties.

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

No branches or pull requests

1 participant