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

Update snitch/location config selection #781

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

beobal
Copy link
Contributor

@beobal beobal commented Dec 17, 2024

CASSANDA-19488 deprecates IEndpointSnitch and replaces it with InitialLocationProvider and NodeProximity classes. In Cassandra, the default yaml config retains the endpoint_snitch setting, whereas the alternative cassandra_latest yaml specifies the new options. CCM injects PropertyFileSnitch into config for multi datacenter clusters, but this is problematic as the old and new config options are mutually exclusive.

This patch injects both the old and new settings into config when the cluster is populated, then removes whichever one was not present in the original yaml once it has been loaded. This allows dtests to run with both the legacy and latest configs and exercises both code paths.

beobal and others added 2 commits December 17, 2024 14:16
CASSANDA-19488 deprecates IEndpointSnitch and replaces it with
InitialLocationProvider and NodeProximity classes. In Cassandra, the
default yaml config retains the endpoint_snitch setting, whereas the
alternative cassandra_latest yaml specifies the new options. CCM injects
PropertyFileSnitch into config for multi datacenter clusters, but this
is problematic as the old and new config options are mutually exclusive.

This patch injects both the old and new settings into config when the
cluster is populated, then removes whichever one was not present in the
original yaml once it has been loaded. This allows dtests to run with
both the legacy and latest configs and exercises both code paths.
@driftx driftx merged commit c36b4e2 into riptano:master Dec 18, 2024
1 check passed
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.

3 participants