Repository navigation
fix(postgres): run the collation repair outside the Helm hook - #5479
Draft
Andrey Kolkov (androndo) wants to merge 1 commit into
Draft
Andrey Kolkov (androndo) wants to merge 1 commit into
Andrey Kolkov (androndo) wants to merge 1 commit into
Conversation
Work in progress: the repair moves into a Job the init hook starts through the API, so it no longer waits for the rollout inside the hook budget. Assisted-By: LLM Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Refs #5459 (item 3: the repair waits for the rollout inside the Helm hook budget).
Work in progress, not ready for review. Verification on a dev cluster is still running, and the description will be completed with the results.
Today the init Job (a
post-install/post-upgradehook) runs the collation repair right after Helm patches the cnpg.io Cluster. It first waits until the primary runs the new image. With clients holding sessions, CNPG keeps every instance in smart shutdown for up to 180 s, so that wait alone can take 7–8 minutes and use up the hook budget. Upgrades then end inUpgradeFaileduntil Flux retries. On a dev cluster the first upgrade of every cluster whose image moves also failed withFATAL: the database system is shutting down.The direction this PR takes:
post-upgradehook creates through the API outside the release. The hook returns right away, so the upgrade no longer waits for the rollout or for the rebuild.create, which RBAC cannot narrow to a name. The Role is removed once the hooks succeed.Release note