-
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: fix the missing first store state during backup #53920
Conversation
Skipping CI for Draft Pull Request. |
Hi @3pointer. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53920 +/- ##
=================================================
- Coverage 74.5027% 56.5539% -17.9489%
=================================================
Files 1508 1637 +129
Lines 358349 614917 +256568
=================================================
+ Hits 266980 347760 +80780
- Misses 71944 243579 +171635
- Partials 19425 23578 +4153
Flags with carried forward coverage won't be shown. Click here to find out more.
|
br/pkg/backup/client.go
Outdated
@@ -318,6 +332,7 @@ mainLoop: | |||
mainCancel() | |||
return err | |||
} | |||
allTxnLocks = append(allTxnLocks, lock) |
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.
lock
maybe nil
br/pkg/backup/client.go
Outdated
case *backuppb.Error_KvError: | ||
if lockErr := v.KvError.Locked; lockErr != nil { | ||
// collect locks for later resolving in this round | ||
txnLock = txnlock.NewLock(lockErr) |
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.
can we return directly?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BornChanger, Leavrth The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/retest |
@BornChanger: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
/run-pull-br-integration-test |
2 similar comments
/run-pull-br-integration-test |
/run-pull-br-integration-test |
/test pull-br-integration-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: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
/ok-to-test |
/test fast_test_tiprow |
@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. |
What problem does this PR solve?
Issue Number: ref #52534
close #53926
Problem Summary:
The previous implementation of
storewatch
has the wrong beginning state. we must take the first step before the tick starts. Then theWithOnNewStoreRegistered
will have the correctlastStore
states to make computing results correct.What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.