Repository navigation
fix: reconcile WAL PVC resize before disk-full guard - #11466
Open
JamesatStarling wants to merge 1 commit into
Open
JamesatStarling wants to merge 1 commit into
JamesatStarling wants to merge 1 commit into
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
4 tasks done
| @@ -234,6 +234,9 @@ func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct | |||
| var errUnknownPlugin *repository.ErrUnknownPlugin | |||
| if errors.As(err, &errUnknownPlugin) { | |||
| regErr := r.RegisterPhase( | |||
| return ctrl.Result{ | |||
| RequeueAfter: 10 * time.Second, | |||
| }, r.RegisterPhase( | |||
Contributor
There was a problem hiding this comment.
I think this is now broken and won't build.
Author
There was a problem hiding this comment.
Thanks @GellertBabel I've removed the redundant regErr 🤞🏼
2 tasks done
JamesatStarling
force-pushed
the
dev/11341
branch
from
September 28, 2026 14:35
8194095 to
385debb
Compare
JamesatStarling
force-pushed
the
dev/11341
branch
from
September 28, 2026 15:24
385debb to
7393d1a
Compare
…11341) Signed-off-by: James Evans <[email protected]>
JamesatStarling
force-pushed
the
dev/11341
branch
from
September 28, 2026 15:52
a1c2b7f to
3d93913
Compare
|
We hit this on v1.30.1 with a single-volume cluster so it is not limited to WAL PVCs.
Reading the change, Two suggestions:
Appreciating the effort :)! |
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.
Description
When a PostgreSQL instance stops because its WAL volume is full, the cluster reconciliation loop returns from the disk-full guard before reaching normal PVC reconciliation. As a result, increasing
spec.walStorage.sizedoes not update the existing WAL PVC, leaving recovery dependent on a manual PVC patch.This change reconciles existing PVCs before evaluating the WAL disk-full guard. It intentionally leaves missing-PVC creation in the existing, lifecycle-gated reconciliation path.
Changes
disk-full guard requeues reconciliation
Fixes: #11341