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

CASSGO-6 'Unable to discover cluster nodes with an empty rack name' issue fix #1785

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

tengu-alt
Copy link

@tengu-alt tengu-alt commented Jul 24, 2024

This PR addresses issue #1706.

The driver was unable to discover nodes with an empty rack name because the isValidPeer() function incorrectly checked for an empty string in the rack value (which is a valid case). The correct validation should ensure the rack name is not null (as a null value indicates an invalid peer).

This PR fixes the method of retrieving the rack value from the system.peers and system.peers_v2 tables. Now, the rack value is set as a pointer to a string, allowing the value to be checked for null.

@joao-r-reis joao-r-reis changed the title 'Unable to discover cluster nodes with an empty rack name' issue fix CASSGO-6 'Unable to discover cluster nodes with an empty rack name' issue fix Oct 29, 2024
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

Successfully merging this pull request may close these issues.

1 participant