Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring the backup deletion process to cleanup backup info on master host. #18

Merged
merged 9 commits into from
Oct 13, 2024

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Oct 1, 2024

gpbackup save information in $MASTER_DATA_DIRECTORY/backups. It is necessary to clear backup information on the master.

Added deletion of files on the master when deleting a backup using a plugin. Also, performed a small refactoring with the addition of handlers for error handling.

There may be cases when a backup hangs in the In Progress status. Additionally, backups in the Failure status save information about themselves. You can get a report for them, and they also need to be deleted.

The conditions in checkBackupCanBeUsed() function have been changed to work with backups that have not been deleted. This allows for the deletion of backups in Failure or In Progress statuses.

The --deleted flag was removed for history-clean command.
Only deleted backups are deleted. In order to delete information about backup from the database, it must have the deleted status.

The tests have been updated for these changes.

gpbackup  save information in $MASTER_DATA_DIRECTORY/backups. When deleting a backup using a plugin, it is necessary to clear local backup information on the master.

Added deletion of files on the master when deleting a backup using a plugin. Also, performed a small refactoring with the addition of handlers for error handling.

There may be cases when a backup hangs in the "In Progress" status. Additionally, backups in the "Failure" status save information about themselves. You can get a report for them, and they also need to be deleted.

The conditions in the checkBackupCanBeUsed() function have been changed. The conditions in checkBackupCanBeUsed() function have been changed to work with backups that have not been deleted. This allows for the deletion of backups in "Failure" or "In Progress" statuses.
Remove --deleted flag.
Only deleted backups are deleted. In order to delete information about backup from the database, it must have the deleted status.
E2e tests tests will be refactored in the future.
@woblerr woblerr added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 1, 2024
@woblerr woblerr self-assigned this Oct 1, 2024
@woblerr woblerr marked this pull request as draft October 1, 2024 22:04
@woblerr woblerr marked this pull request as ready for review October 2, 2024 15:52
@woblerr woblerr merged commit adcbaea into master Oct 13, 2024
6 checks passed
@woblerr woblerr deleted the fix_delete_in_progress_hang_backup branch October 13, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant