Skip to content

Optimize seek leader store logic#335

Merged
marsishandsome merged 3 commits intotikv:release-3.1from
birdstorm:optimize-seek-leader-store
Nov 21, 2021
Merged

Optimize seek leader store logic#335
marsishandsome merged 3 commits intotikv:release-3.1from
birdstorm:optimize-seek-leader-store

Conversation

@birdstorm
Copy link
Copy Markdown
Collaborator

remove redundant seek leader logic that may cause retry.

Signed-off-by: birdstorm <samuelwyf@hotmail.com>
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
@@ -240,6 +212,12 @@ private Boolean seekLeaderStore(SlowLog slowLog) {
updateClientStub();
return true;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a log here to indicate that the leader is unreachable?

Copy link
Copy Markdown
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marsishandsome
Copy link
Copy Markdown
Collaborator

/merge

1 similar comment
@marsishandsome
Copy link
Copy Markdown
Collaborator

/merge

@ti-srebot
Copy link
Copy Markdown
Collaborator

/run-all-tests

1 similar comment
@ti-srebot
Copy link
Copy Markdown
Collaborator

/run-all-tests

@marsishandsome marsishandsome merged commit e87bb8a into tikv:release-3.1 Nov 21, 2021
marsishandsome pushed a commit to marsishandsome/client-java that referenced this pull request Dec 1, 2021
marsishandsome pushed a commit to marsishandsome/client-java that referenced this pull request Dec 1, 2021
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
@birdstorm birdstorm deleted the optimize-seek-leader-store branch December 16, 2021 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants