Skip to content

test(e2e): hold failover during disk-space recovery - #11659

Merged
leonardoce merged 1 commit into
mainfrom
dev/disk-space-failover-delay
Oct 14, 2026
Merged

leonardoce merged 1 commit into
mainfrom
dev/disk-space-failover-delay

Conversation

@mnencia

@mnencia mnencia commented Oct 14, 2026

Copy link
Copy Markdown
Member

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.

@mnencia
mnencia requested review from a team, NiccoloFei and litaocdl as code owners October 14, 2026 07:38
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.28 release-1.30 labels Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@mnencia

mnencia commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

/test tl=3 ft=storage

@github-actions

Copy link
Copy Markdown
Contributor

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
leonardoce force-pushed the dev/disk-space-failover-delay branch from 21c0a64 to be0710a Compare October 14, 2026 12:37
@leonardoce

Copy link
Copy Markdown
Contributor

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Oct 14, 2026
@leonardoce
leonardoce merged commit a0df932 into main Oct 14, 2026
@leonardoce
leonardoce deleted the dev/disk-space-failover-delay branch October 14, 2026 12:50
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases no-issue ok to merge 👌 This PR can be merged release-1.28 release-1.30

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants