-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: implement store based backup to solve the long tail issue #53081
Conversation
Skipping CI for Draft Pull Request. |
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53081 +/- ##
================================================
+ Coverage 72.0214% 75.4312% +3.4098%
================================================
Files 1508 1518 +10
Lines 434823 451436 +16613
================================================
+ Hits 313166 340524 +27358
+ Misses 102084 89934 -12150
- Partials 19573 20978 +1405
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
/ok-to-test |
/ok-to-test |
/ok-to-test |
/test pull-br-integration-test |
@3pointer: The specified target(s) for
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test pull-br-integration-test |
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.
rest LGTM
}() | ||
cases := make([]reflect.SelectCase, 0) | ||
for _, ch := range storeBackupChs { | ||
cases = append(cases, reflect.SelectCase{Dir: reflect.SelectRecv, Chan: reflect.ValueOf(ch)}) |
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.
maybe need a ctx.Done?
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.
rest lgtm.
br/pkg/backup/push.go
Outdated
bCli, err := client.Backup(ctx, &req) | ||
failpoint.Inject("reset-retryable-error", func(val failpoint.Value) { | ||
switch val.(string) { | ||
case "Unavaiable": |
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.
Shuold be "Unavailable"?
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.
seems this failpoint never works before..
/test unit-test |
@3pointer: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@3pointer: The specified target(s) for
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test unit-test |
@3pointer: The specified target(s) for
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test unit-test |
@3pointer: The specified target(s) for
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #52534
Problem Summary:
current backup(range-based backup) mechanism has 2 problems:
What changed and how does it work?
This PR is focus on implement backup store-based backup. refer to the
storeBackup
goroutine andmain goroutine
.Also in this PR, I'll remove some special range-based backup code. especially code related to
handleFineGrained
.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.