backup: remove deprecated hook support#12066
Conversation
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
|
I have not created a separate issue for this task. If any reviewers feel that one is required, I'm happy to create it. |
| // ExecuteBackup runs a backup based on given params. This could be a full or incremental backup. | ||
| // The function returns a boolean that indicates if the backup is usable, and an overall error. | ||
| func (be *BuiltinBackupEngine) ExecuteBackup(ctx context.Context, params BackupParams, bh backupstorage.BackupHandle) (bool, error) { | ||
| params.Logger.Infof("Hook: %v, Compress: %v", backupStorageHook, backupStorageCompress) |
There was a problem hiding this comment.
Might be informative to instead log the params but IMO fine to just remove too.
There was a problem hiding this comment.
I've added a log line that prints more info.
I0111 13:48:44.086977 11714 builtinbackupengine.go:179] Executing Backup at 2023-01-11 13:48:39.006292 -0800 PST m=+2.432865209 for keyspace/shard ks/0 on tablet vtbackup-2077360256, concurrency: 4, compress: true, incrementalFromPos:
| // and an overall error. | ||
| func (be *BuiltinBackupEngine) executeFullBackup(ctx context.Context, params BackupParams, bh backupstorage.BackupHandle) (bool, error) { | ||
|
|
||
| params.Logger.Infof("Hook: %v, Compress: %v", backupStorageHook, backupStorageCompress) |
There was a problem hiding this comment.
Same comment as above for the log line.
There was a problem hiding this comment.
This is a duplicate log line, because the exact same thing was already being logged just before we call this function. So I have left this deleted.
GuptaManan100
left a comment
There was a problem hiding this comment.
Did you check if the flags are used in the vitess operator?
|
Okay, I have verified, its not used in VTop. |
I didn't check, but I knew that this flag wasn't being used 😄 |
Signed-off-by: deepthi <deepthi@planetscale.com>
Description
In v15, we deprecated backup/restore hooks and provided a much better way of customizing compression/decompression of backups. This PR deletes the flags and code associated with backup/restore hooks.
Related Issue(s)
#11491 #10558 #10670 #7802
Checklist
Deployment Notes