-
Notifications
You must be signed in to change notification settings - Fork 287
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
cdc,retry: fix leader missing by extending region retry duration #5269
Conversation
Signed-off-by: Neil Shen <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@@ -294,7 +294,6 @@ type CDCKVClient interface { | |||
ctx context.Context, | |||
span regionspan.ComparableSpan, | |||
ts uint64, | |||
enableOldValue bool, |
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.
why remove the enableOldValue flag in this PR? Is there an issue related to this item?
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.
The enableOldValue
param has been deprecated monthes ago, it's a cleanup for dead code.
Signed-off-by: Neil Shen <[email protected]>
pkg/retry/options.go
Outdated
@@ -66,18 +70,19 @@ func WithBackoffMaxDelay(delayInMs int64) Option { | |||
} | |||
|
|||
// WithMaxTries configures maximum tries, if tries <= 0 "defaultMaxTries" will be used |
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.
if tries <= 0 "defaultMaxTries" will be used
seems a wrong description.
pkg/retry/options.go
Outdated
defaultBackoffCapInMs = 100.0 | ||
defaultMaxTries = 3 | ||
defaultBackoffCapInMs = 100.0 | ||
defaultMaxTries = math.MaxInt64 |
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.
Why do you set this to math.MaxInt64
?
Signed-off-by: Neil Shen <[email protected]>
/run-all-tests |
Signed-off-by: Neil Shen <[email protected]>
/run-all-tests |
In response to a cherrypick label: new pull request created: #5316. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #5317. |
In response to a cherrypick label: new pull request created: #5318. |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #5319. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #5320. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #5321. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #5322. |
…gcap#5269) Signed-off-by: Neil Shen <[email protected]>
…gcap#5269) Signed-off-by: Neil Shen <[email protected]>
…gcap#5269) Signed-off-by: Neil Shen <[email protected]>
What problem does this PR solve?
Issue Number: close #5230
What is changed and how it works?
Other changes
oldvalue
in puller and kv client.Check List
Tests
Related changes
Release note