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

move SeedProvider and AbstractNetworkTopologySnitch to InetAddressAndPort for forward compatibility #519

Open
wants to merge 13 commits into
base: palantir-cassandra-2.2.18
Choose a base branch
from

Conversation

rhuffy
Copy link
Contributor

@rhuffy rhuffy commented Aug 7, 2024

Modern versions of Cassandra use InetAdderssAndPort in place of InetAddress. To avoid maintaining two implementations of every custom SeedProvider and AbstractNetworkTopologySnitch we use internally, this PR switches some usage of InetAddress to InetAddressAndPort.

This allows us to maintain implementations of SeedProvider and AbstractNetworkTopologySnitch that are compile-time compatible with this fork, and with OSS trunk.

@rhuffy rhuffy force-pushed the rh/inetaddress-and-port branch from 0dffd23 to efbf067 Compare August 7, 2024 23:15
Comment on lines +298 to +299

InetAddressAndPort.initializeDefaultPort(getSSLStoragePort());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that on trunk the default port is getStoragePort() so 7000. I'm not sure if this matters.

@nickbar01234 nickbar01234 self-requested a review August 29, 2024 02:51
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