-
Notifications
You must be signed in to change notification settings - Fork 233
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
Fix the issue that leader change with new leader info cause invalidStore state and lead to unnecessary backoff #1115
Merged
cfzjywxk
merged 2 commits into
tikv:master
from
MyonKeminta:m/fix-leader-change-cause-invalid-store
Jan 15, 2024
Merged
Fix the issue that leader change with new leader info cause invalidStore state and lead to unnecessary backoff #1115
cfzjywxk
merged 2 commits into
tikv:master
from
MyonKeminta:m/fix-leader-change-cause-invalid-store
Jan 15, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state and lead to unnecessary backoff Signed-off-by: MyonKeminta <[email protected]>
@crazycs520 @zyguan @cfzjywxk PTAL |
cfzjywxk
approved these changes
Jan 15, 2024
@@ -1008,6 +1009,10 @@ func (s *replicaSelector) proxyReplica() *replica { | |||
return nil | |||
} | |||
|
|||
func sliceIdentical[T any](a, b []T) 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.
Better to comment about this function.
Signed-off-by: MyonKeminta <[email protected]>
zyguan
approved these changes
Jan 15, 2024
crazycs520
approved these changes
Jan 15, 2024
13 tasks
13 tasks
This was referenced Jan 23, 2024
@MyonKeminta Could you cherry-pick this PR to tidb-6.5-with-kv-timeout-feature branch? |
MyonKeminta
added a commit
to MyonKeminta/client-go
that referenced
this pull request
May 11, 2024
…ore state and lead to unnecessary backoff (tikv#1115) * Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff Signed-off-by: MyonKeminta <[email protected]> * address comments Signed-off-by: MyonKeminta <[email protected]> --------- Signed-off-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]>
cfzjywxk
pushed a commit
that referenced
this pull request
May 14, 2024
…ore state and lead to unnecessary backoff (#1115) (#1337) * Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff (#1115) * Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff Signed-off-by: MyonKeminta <[email protected]> * address comments Signed-off-by: MyonKeminta <[email protected]> --------- Signed-off-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]> * Fix build on go1.18 Signed-off-by: MyonKeminta <[email protected]> --------- Signed-off-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]>
mittalrishabh
pushed a commit
to mittalrishabh/client-go
that referenced
this pull request
Jan 8, 2025
…ore state and lead to unnecessary backoff (tikv#1115) (tikv#1337) * Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff (tikv#1115) * Fix the issue that leader change with nea leader info cause invalidStore state and lead to unnecessary backoff Signed-off-by: MyonKeminta <[email protected]> * address comments Signed-off-by: MyonKeminta <[email protected]> --------- Signed-off-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]> * Fix build on go1.18 Signed-off-by: MyonKeminta <[email protected]> --------- Signed-off-by: MyonKeminta <[email protected]> Co-authored-by: MyonKeminta <[email protected]>
mittalrishabh
added a commit
to mittalrishabh/client-go
that referenced
this pull request
Jan 8, 2025
…nvalidStore state and lead to unnecessary backoff (tikv#1115) (tikv#1337)" (tikv#4) This reverts commit 9e1b9eb. Co-authored-by: rishabh_mittal <[email protected]>
mittalrishabh
pushed a commit
to mittalrishabh/client-go
that referenced
this pull request
Jan 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1112