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

Make node replacement less likely to hit StatefulSet bug #697

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

tnozicka
Copy link
Member

@tnozicka tnozicka commented Jul 14, 2021

Description of your changes:
When we replace a scylla node and delete the PVC and the pod, a new PVC might not be created by Statefulset controller for the new pod. StatefulSet doesn't reconcile PVCs, it decides PVC presence only from its cache and never recreates it if it's missing, only when it creates the pod. This PR gives StatefulSet controller a higher chance to see the PVC was deleted before we deleting the pod.

Which issue is resolved by this Pull Request:
Resolves #687

@tnozicka tnozicka added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Jul 14, 2021
@tnozicka tnozicka added this to the v1.4 milestone Jul 14, 2021
@tnozicka tnozicka requested a review from zimnx July 14, 2021 10:18
Copy link
Collaborator

@zimnx zimnx left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@zimnx zimnx enabled auto-merge July 14, 2021 10:31
@zimnx zimnx merged commit 4bc9b0c into scylladb:master Jul 14, 2021
@tnozicka tnozicka deleted the fix-replace branch July 14, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated PVs and lost PVC after bunch of scylla pods recreations caused by K8S scylla node recreations
2 participants