-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fixes the toBackupList function by removing the loop #3869
Conversation
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.
✅ A review job has been created and sent to the PullRequest network.
@gitlw you can click here to see the review status or cancel the code review job.
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.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
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 have a question inline regarding the new check being added to short-circuit and how it impacts code in one of the cases below.
Reviewed with ❤️ by PullRequest
ee/backup/backup.go
Outdated
list.Kv = append(list.Kv, kvs...) | ||
case posting.BitSchemaPosting: | ||
var valCopy []byte | ||
if !item.IsDeletedOrExpired() { |
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.
It seems like this case may always be hit now that you have a check at the top for:
if item.Version() < pr.Request.SinceTs || item.IsDeletedOrExpired() {
return list, nil
}
Wondering if this case can be simplified from this or if that initial if
statement needs to be adjusted for this case?
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 tested backup and restore of the 21million data set under 2 configs
- 1 alpha and 1 zero
- 3 alphas and 1 zero with replication 1 (each alpha in an independent group)
and for each config the result is validated using the system/21million/run_test.go
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gitlw)
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.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @manishrjain and @pullrequest[bot])
ee/backup/backup.go, line 234 at r1 (raw file):
Previously, pullrequest[bot] wrote…
It seems like this case may always be hit now that you have a check at the top for:
if item.Version() < pr.Request.SinceTs || item.IsDeletedOrExpired() { return list, nil }
Wondering if this case can be simplified from this or if that initial
if
statement needs to be adjusted for this case?
Great catch, I've removed the if condition check.
This PR fixes the issue #3831 described in the uncompleted PR #3832 , which is blocking the 1.1 release.
This change is