fix(backup): add reconciliation timestamps to backup status#9351
Merged
leonardoce merged 2 commits intomainfrom Dec 22, 2025
Merged
fix(backup): add reconciliation timestamps to backup status#9351leonardoce merged 2 commits intomainfrom
leonardoce merged 2 commits intomainfrom
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
f70e078 to
2ec6599
Compare
Member
Author
|
/test |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/19862757672 |
Member
Author
|
/test |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/19866345381 |
2ec6599 to
4458b41
Compare
Member
Author
|
/test |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/19866376609 |
4458b41 to
ac5dce6
Compare
Member
Author
|
/test |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/19866426984 |
jsilvela
reviewed
Dec 2, 2025
jsilvela
approved these changes
Dec 10, 2025
ac5dce6 to
adcd08b
Compare
Add `reconciliationStartedAt` and `reconciliationTerminatedAt` fields to the BackupStatus to track when the operator started and terminated the backup reconciliation process. This separates the operator's reconciliation timing from the backup tool's execution timing (`startedAt`/`stoppedAt`), which allows for better monitoring of long-running backups. Previously, `startedAt` was not set until the backup completed, making it difficult to monitor backup progress. Now: - `reconciliationStartedAt`: Set when the operator begins processing the backup (in `SetAsStarted`) - `reconciliationTerminatedAt`: Set when the operator finishes processing (in `SetAsCompleted` or `SetAsFailed`) - `startedAt`/`stoppedAt`: Reserved for the backup tool's actual execution times For volume snapshot backups, `startedAt` and `stoppedAt` are now aligned with the reconciliation timestamps since the backup execution is managed by the operator. Fixes monitoring of long-running backups by providing accurate timing information throughout the backup lifecycle. Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
a56067a to
2b227f8
Compare
leonardoce
approved these changes
Dec 22, 2025
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.
Add
reconciliationStartedAtandreconciliationTerminatedAtfields to the BackupStatus to track when the operator started and terminated the backup reconciliation process.This separates the operator's reconciliation timing from the backup tool's execution timing (
startedAt/stoppedAt), which allows for better monitoring of long-running backups.Previously,
startedAtwas not set until the backup completed, making it difficult to monitor backup progress. Now:reconciliationStartedAt: Set when the operator begins processing the backup (inSetAsStarted)reconciliationTerminatedAt: Set when the operator finishes processing (inSetAsCompletedorSetAsFailed)startedAt/stoppedAt: Reserved for the backup tool's actual execution timesFor volume snapshot backups,
startedAtandstoppedAtare now aligned with the reconciliation timestamps since the backup execution is managed by the operator.Fixes monitoring of long-running backups by providing accurate timing information throughout the backup lifecycle.
Closes #9352