Repository navigation
test(e2e): hold failover during disk-space recovery - #11659
Merged
Merged
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Member
Author
|
/test tl=3 ft=storage |
Contributor
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/38529855259 |
litaocdl
approved these changes
Oct 14, 2026
leonardoce
approved these changes
Oct 14, 2026
The recovery test resizes the WAL volume of the old primary and expects that same pod to come back as primary. If the instance manager restarts before the resize is visible, it exits and kubelet backoff keeps the pod down for about 20 seconds. The operator can fail over inside that window. The test then runs pg_switch_wal() on a standby and fails with "recovery is in progress". Set failoverDelay in both disk-space fixtures so the operator waits instead of promoting a replica. Signed-off-by: Marco Nenciarini <[email protected]>
leonardoce
force-pushed
the
dev/disk-space-failover-delay
branch
from
October 14, 2026 12:37
21c0a64 to
be0710a
Compare
Contributor
|
/ok-to-merge |
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
The recovery test resizes the WAL volume of the old primary and expects that same pod to come back as primary. If the instance manager restarts before the resize is visible, it exits and kubelet backoff keeps the pod down for about 20 seconds. The operator can fail over inside that window. The test then runs `pg_switch_wal()` on a standby and fails with `recovery is in progress`. Set `failoverDelay` in both disk-space fixtures so the operator waits instead of promoting a replica. Signed-off-by: Marco Nenciarini <[email protected]> (cherry picked from commit a0df932)
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
The recovery test resizes the WAL volume of the old primary and expects that same pod to come back as primary. If the instance manager restarts before the resize is visible, it exits and kubelet backoff keeps the pod down for about 20 seconds. The operator can fail over inside that window. The test then runs `pg_switch_wal()` on a standby and fails with `recovery is in progress`. Set `failoverDelay` in both disk-space fixtures so the operator waits instead of promoting a replica. Signed-off-by: Marco Nenciarini <[email protected]> (cherry picked from commit a0df932)
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.
The recovery test resizes the WAL volume of the old primary and expects that same pod to come back as primary. If the instance manager restarts before the resize is visible, it exits and kubelet backoff keeps the pod down for about 20 seconds. The operator can fail over inside that window. The test then runs
pg_switch_wal()on a standby and fails withrecovery is in progress.Set
failoverDelayin both disk-space fixtures so the operator waits instead of promoting a replica.