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

Add new parameter to /start, consistency. #575

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Nov 25, 2024

Supports -Ddse.consistent_replace=X for DSE 6.8/6.9 only

Fixes #574

@emerkle826 I don't think we have the ability to test passed JVM parameters in the /start, at least I didn't see any existing tests for such.

Copy link
Contributor

@emerkle826 emerkle826 left a comment

Choose a reason for hiding this comment

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

Approving this in case the answer to the question is "we don't need to worry about the other settings"

.entity(Entity.text("Invalid replace IP passed: " + replaceIp))
.build();

cmdArgs.add(String.format("-Dcassandra.replace_address_first_boot=%s", replaceIp));
if (!Strings.isNullOrEmpty(consistency)) {
if (app.dbExe.getAbsolutePath().endsWith("dse")) {
cmdArgs.add(String.format("-Ddse.consistent_replace=%s", consistency));
Copy link
Contributor

Choose a reason for hiding this comment

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

Question:
In scenarios where we want to use this, is it possible we'd want to also configure

  • REPAIR_PARALLELISM = "dse.consistent_replace.parallelism"
  • REPAIR_RETRIES = "dse.consistent_replace.retries"
  • SPLITS_PER_RANGE = "dse.consistent_replace.splits_per_range"

If so, then It would be best for this new parameter to be an Object that could marshal/unmarshal into JSON with the above attributes.

If the above aren't relevant, than I am good with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Verified that these are not right now necessary. If user wants those, they can set them as JVM options anyway.

@burmanm burmanm merged commit 9c855cf into master Dec 3, 2024
75 of 78 checks passed
@burmanm burmanm deleted the add_dse_consistency_setting branch December 3, 2024 09:27
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.

Add support for -Ddse.consistent_replace when replacing node
2 participants