8000 Fix sts recreate stuck delete by realyota · Pull Request #1996 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content

Fix sts recreate stuck delete - #1996

Closed
realyota wants to merge 2 commits into
Altinity:masterfrom
realyota:fix-sts-recreate-stuck-delete
Closed

realyota wants to merge 2 commits into
Altinity:masterfrom
realyota:fix-sts-recreate-stuck-delete

Conversation

@realyota
Copy link
Copy Markdown
Contributor

Fix for #1995

Tests were written by Codex

Important items to consider before making a Pull Request

Please check items PR complies to:

  • [ X] All commits in the PR are squashed. More info
  • [X ] The PR is made into dedicated next-release branch, not into master branch1. More info
  • [ X] The PR is signed. More info

--

1 If you feel your PR does not affect any Go-code or any testable functionality (for example, PR contains docs only or supplementary materials), PR can be made into master branch, but it has to be confirmed by project's maintainer.

realyota added 2 commits May 25, 2026 15:52
Bug: when restart fallback scaled a host StatefulSet down, a timed-out StatefulSet delete was ignored and the following create failure was converted into ErrCRUDRecreate, which the create path also ignored. The reconcile could therefore report success while the old StatefulSet was still deleting and the replacement pod was not created.

Fix: abort recreate when StatefulSet deletion fails, treat create API failures as aborts, and defensively abort if ErrCRUDRecreate reaches the create completion path.

Tests: add focused statefulset reconciler unit coverage for create errors, unexpected recreate actions in the create path, and delete failures during recreate.
@realyota
realyota marked this pull request as draft May 28, 2026 10:32
@realyota realyota closed this May 28, 2026
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

0