Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Mar 16, 2023

Issue

Jira issue: DPE-1507
Failed backups are being considered in the restore action.

Solution

Add a flag to the function that list backup ids to return or not failed backups.
Check for failed backups in _on_create_backup_action.
Don't consider failed backups in _on_restore_action.

Context

Change copied from canonical/postgresql-operator#83 (comment).

Testing

Unit and integration tests for the backup/restore features will be implemented on DPE-556.

Release Notes

Don't consider failed backups when restoring.

@marceloneppel marceloneppel marked this pull request as ready for review March 16, 2023 21:05
@marceloneppel marceloneppel requested a review from dragomirp March 16, 2023 21:18
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be an interesting idea for MySQL too, CC: @shayancanonical

@marceloneppel marceloneppel merged commit f835a0e into main Mar 17, 2023
@marceloneppel marceloneppel deleted the dont-restore-failed-backups branch March 17, 2023 18:34
BON4 pushed a commit to BON4/postgresql-k8s-operator that referenced this pull request May 20, 2024
github-actions bot added a commit to canonical/test-runners-2-is-x64-postgresql-k8s-operator that referenced this pull request Jul 15, 2024
github-actions bot added a commit to canonical/test-runners-2-is-arm64-postgresql-k8s-operator that referenced this pull request Jul 16, 2024
github-actions bot added a commit to canonical/test-runners-2-github-x64-postgresql-k8s-operator that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants