Skip to content

fix(dataprotection): requeue young backups with no target pods instead of failing - #10952

Open
Tyagiquamar wants to merge 2 commits into
apecloud:mainfrom
Tyagiquamar:bugfix/10611-backup-transient-target-pods
Open

Tyagiquamar wants to merge 2 commits into
apecloud:mainfrom
Tyagiquamar:bugfix/10611-backup-transient-target-pods

Conversation

@Tyagiquamar

Copy link
Copy Markdown

Fixes #10611. On transient target-pod resolution failure (pod not Ready yet or role label unpublished), a Backup in its first 10 minutes now returns an ErrorTypeRequeue so the controller retries instead of marking it Failed terminally. After the window expires the previous terminal error is preserved. Regression tests fail pre-fix and pass post-fix. Validation in Docker golang:1.25-bookworm: gofmt clean, go vet clean, go test ./controllers/dataprotection/ -run 'TestPrepareRequestTargetInfoTransientTargets|TestDeleteBackupFiles|TestSyncJobActions' passes.

@Tyagiquamar
Tyagiquamar requested review from a team, ldming and wangyelei as code owners September 26, 2026 19:58
@CLAassistant

CLAassistant commented Sep 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added the size/M Denotes a PR that changes 30-99 lines. label Sep 26, 2026
@apecloud-bot apecloud-bot added the pre-approve Fork PR Pre Approve Test label Sep 26, 2026
@apecloud-bot

Copy link
Copy Markdown
Collaborator

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.1

CLA Recheck Instructions

Usage:
  - /recheck-cla: Trigger a re-check of CLA status for this pull request.
Example:
  - /recheck-cla

@Tyagiquamar

Copy link
Copy Markdown
Author

/nopick

@apecloud-bot apecloud-bot added the nopick Not auto cherry-pick when PR merged label Sep 29, 2026
@apecloud-bot apecloud-bot removed the pre-approve Fork PR Pre Approve Test label Oct 8, 2026
@github-actions github-actions Bot added size/L Denotes a PR that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Oct 8, 2026
@apecloud-bot apecloud-bot added the pre-approve Fork PR Pre Approve Test label Oct 8, 2026
@Tyagiquamar

Copy link
Copy Markdown
Author

This helper is also called for running continuous backups.

Restricted the startup retry window to backups with an empty or New phase. Running continuous backups now retain the terminal error path when their target disappears, and Failed continuous backups still scale their backup StatefulSet to zero.

Added focused regressions for both phases, including the StatefulSet cleanup assertion. Both cases failed before the guard change. Docker golang:1.25-bookworm (Go 1.25.14): gofmt check, targeted TestPrepareRequestTargetInfoTransientTargets/TestDeleteBackupFiles/TestSyncJobActions, package build, and go vet all passed.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment

@github-actions github-actions Bot added the Stale label Nov 23, 2026

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

nopick Not auto cherry-pick when PR merged pre-approve Fork PR Pre Approve Test size/L Denotes a PR that changes 100-499 lines. Stale

Projects

None yet

4 participants