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.
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
select backup engine in Backup() and ignore engines in RestoreFromBackup() #16428
select backup engine in Backup() and ignore engines in RestoreFromBackup() #16428
Changes from 10 commits
675922a
b4fb33d
b2b83f5
1369c4a
5f12132
2738f7f
a73bf44
a08b8e1
f4f6451
4c70b4e
4613bf5
2f174cc
d4a53a9
631bb65
f3b9e83
41cd68e
c187e36
b2a540e
ff3dc51
a6dff4b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
There's a
StringSliceVar
flag type that handles comma separated lists.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.
There's an existing
readManifestFile()
function inbackup_utils.go
. Please reuse.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.
Consider reusing (or refactoring)
func (cluster LocalProcessCluster) ListBackups(shardKsName string) ([]string, error)
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.
Remove the above 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.
Ideally insert data that is meaningful to the test. So instead of
"test2"
insert a"right after xtrabackup backup"
(or whatever makes sense here).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 don't see
test2
being tested. I assume that if we insert this value after the full backup, we want to validate that it does not exists after restore.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.
mostly because there are other cases where we validate on vitess by checking numbers of rows, but I agree it would be better testing the values themselves, so I added that
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.
These are different tests here. Please separate them via properly named
t.Run(..., )
subtests.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.
cluster.VerifyRowsInTablet
is a valid way to test the restore content, and strong enough as the test goes, but not clear enough for future us. It's better to explicitly require "there's a row with this specific string value that means something".