Skip to content

Conversation

@marsishandsome
Copy link
Collaborator

@marsishandsome marsishandsome commented Nov 30, 2021

Signed-off-by: marsishandsome marsishandsome@gmail.com

close #353

we should check timeout during SeekLeader and SeekProxy

@marsishandsome marsishandsome force-pushed the feature/add-backoff-grpc-deadline branch from 4cc0eec to d9c6f51 Compare November 30, 2021 02:44
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
@marsishandsome marsishandsome force-pushed the feature/add-backoff-grpc-deadline branch from d9c6f51 to c5feac8 Compare November 30, 2021 03:05
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

this.store = store;
if (this.store.getProxyStore() != null) {
this.timeout = conf.getForwardTimeout();
} else if (!this.store.isReachable()) {
Copy link
Member

Choose a reason for hiding this comment

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

why it's removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do not need to do Seek Leader and Seek Proxy during initializing RegionStoreClient. Reasons are:

  • Seek Leader and Seek Proxy cost time, but we do not want to the initializing process cost too much time.
  • Seek Leader and Seek Proxy will happen after the first call when reciving gRPC Deadline Exceeded.

@zz-jason
Copy link
Member

@marsishandsome please remove the unnecessary items in the PR description.

@marsishandsome marsishandsome force-pushed the feature/add-backoff-grpc-deadline branch 2 times, most recently from c5e485c to b3ef821 Compare December 1, 2021 06:03
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

birdstorm
birdstorm previously approved these changes Dec 1, 2021
Copy link
Collaborator

@birdstorm birdstorm 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
Collaborator Author

/run-all-tests

@marsishandsome marsishandsome force-pushed the feature/add-backoff-grpc-deadline branch 2 times, most recently from afa7c35 to d015ce4 Compare December 1, 2021 06:25
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
@marsishandsome marsishandsome force-pushed the feature/add-backoff-grpc-deadline branch from d015ce4 to 48393a1 Compare December 1, 2021 06:33
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

Copy link
Collaborator

@birdstorm birdstorm left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason
Copy link
Member

zz-jason commented Dec 1, 2021

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

@zz-jason
Copy link
Member

zz-jason commented Dec 1, 2021

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

@zz-jason zz-jason merged commit 6ec1d70 into tikv:release-3.1 Dec 1, 2021
marsishandsome added a commit to marsishandsome/client-java that referenced this pull request Dec 2, 2021
marsishandsome added a commit to marsishandsome/client-java that referenced this pull request Dec 2, 2021
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
marsishandsome added a commit that referenced this pull request Dec 2, 2021
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
ankita25 pushed a commit to ankita25/client-java that referenced this pull request Dec 14, 2021
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
Signed-off-by: Ankita Wagh <awagh@pinterest.com>
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