Skip to content

test(e2e): take the replica cluster backup on the primary - #1169

Open
armru wants to merge 1 commit into
mainfrom
dev/replica-backup-target
Open

armru wants to merge 1 commit into
mainfrom
dev/replica-backup-target

Conversation

@armru

@armru armru commented Oct 19, 2026

Copy link
Copy Markdown
Member

After the replica cluster is promoted, the operator recreates its standby to apply configuration changes that need a restart. The backup taken right after the promotion has no target, so it runs on the standby when one is ready, and fails when the operator deletes that pod during the backup. This made the switchover specs flaky in CI, for example on #993.

Target the primary, as the source cluster backup already does.

Verified on kind by deleting the standby while the backup runs: without the change the backup ends failed, with it the spec passes.

@armru
armru requested a review from a team as a code owner October 19, 2026 11:47
After the replica cluster is promoted, the operator recreates its
standby to apply configuration changes that need a restart. The backup
taken right after the promotion has no target, so it runs on the standby
when one is ready, and fails when the operator deletes that pod during
the backup. This made the switchover specs flaky in CI.

Target the primary, as the source cluster backup already does.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
@NiccoloFei
NiccoloFei force-pushed the dev/replica-backup-target branch from eea9a3f to e30e244 Compare October 23, 2026 13:46
@NiccoloFei

Copy link
Copy Markdown
Contributor

This branch has not been deployed

No deployments
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.

2 participants