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

Allow replacenode task to replace nodes that have Cassandra crashed #634

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Apr 12, 2024

What this PR does:
Modifies the replace pod process to be able to replace a node that has no longer a running Cassandra pod. Also, add a test to verify the PVs that the pod uses are different from previous ones in the replace node e2e test.

Which issue(s) this PR fixes:
Fixes #628

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm requested a review from a team as a code owner April 12, 2024 14:05
Copy link
Contributor

@adejanovski adejanovski left a comment

Choose a reason for hiding this comment

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

Works great!

Comment on lines 299 to 300
// Should we do it here? This is going to target just a single node in any case
// Validate the pod is a known one and get it
Copy link
Contributor

Choose a reason for hiding this comment

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

question: not sure what you want to express here? Is there some check you want to do here that you're doing somewhere else atm?

@burmanm burmanm merged commit 3879704 into k8ssandra:master Apr 16, 2024
2 of 3 checks 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.

Allow replace nodes to replace pods in any state
2 participants