Skip to content

CASSGO-6 Accept peers with empty rack #1895

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

jameshartig
Copy link
Contributor

This fixes #1706.

Copy link
Contributor

@joao-r-reis joao-r-reis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left a few comments

host_source.go Outdated
@@ -413,8 +414,9 @@ func (h *HostInfo) update(from *HostInfo) {
if h.dataCenter == "" {
h.dataCenter = from.dataCenter
}
if h.rack == "" {
if h.missingRack || h.rack == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should remove the h.rack == "" from here? If now we treat "" as a valid rack.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I could see that, I was trying to handle filling in the rack if it was empty but since "" is valid I should remove it.

@joao-r-reis
Copy link
Contributor

Looks good, don't forget to update commit message before merging

This fixes apache#1706.

Patch by James Hartig for CASSGO-6; reviewed by João Reis for CASSGO-6
@jameshartig jameshartig merged commit f400b49 into apache:trunk Jun 26, 2025
2 checks passed
@jameshartig jameshartig deleted the empty-rack branch June 26, 2025 14:36
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.

CASSGO-6 Unable to discover cluster nodes with an empty rack name
2 participants