Skip to content

Conversation

@aignatov
Copy link
Contributor

When a Cassandra pod is deleted during decommission (e.g., StatefulSet scaled down manually), casskop gets stuck in StatusOngoing state because it tries to get a non-existent pod and returns an error instead of transitioning to StatusFinalizing for PVC cleanup.

This fix handles the IsNotFound error case during StatusOngoing by transitioning to StatusFinalizing and proceeding with PVC cleanup, similar to how StatusFinalizing already handles this case.

The fix ensures casskop can properly recover when pods are deleted during decommission operations, allowing the cluster to scale correctly.

Q A
Bug fix? []
New feature? []
API breaks? []
Deprecations? []
Related tickets fixes #X, partially #Y, mentioned in #Z
License Apache 2.0

What's in this PR?

Why?

Additional context

Checklist

  • Implementation tested
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog

To Do

  • If the PR is not complete but you want to discuss the approach, list what remains to be done here

When a Cassandra pod is deleted during decommission (e.g., StatefulSet
scaled down manually), casskop gets stuck in StatusOngoing state
because it tries to get a non-existent pod and returns an error
instead of transitioning to StatusFinalizing for PVC cleanup.

This fix handles the IsNotFound error case during StatusOngoing by
transitioning to StatusFinalizing and proceeding with PVC cleanup,
similar to how StatusFinalizing already handles this case.

The fix ensures casskop can properly recover when pods are deleted
during decommission operations, allowing the cluster to scale correctly.
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