-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
backup: remove deprecated hook support #12066
Conversation
Signed-off-by: deepthi <[email protected]>
Signed-off-by: deepthi <[email protected]>
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. |
@@ -181,8 +176,6 @@ func (fe *FileEntry) open(cnf *Mycnf, readOnly bool) (*os.File, error) { | |||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be informative to instead log the params
but IMO fine to just remove too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
@@ -301,11 +294,6 @@ func (be *BuiltinBackupEngine) executeIncrementalBackup(ctx context.Context, par | |||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above for the log line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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