Refactoring the backup deletion process to cleanup backup info on master host. #18
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.
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 theFailure
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 inFailure
orIn Progress
statuses.The
--deleted
flag was removed forhistory-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.