Skip to content
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

client: support custom client timeout #2480

Merged
merged 3 commits into from
Jun 1, 2020
Merged

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented May 29, 2020

What problem does this PR solve?

Close #2473

What is changed and how it works?

This PR adds a new field in base client named timeout and it can be changed when we use WithCustomTimeoutOption to create a new client.

Check List

Tests

  • Unit test

  • need to add a unit test

Release note

  • support setting a custom timeout for PD client

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx rleungx added the component/client Client logic. label May 29, 2020
@rleungx rleungx added this to the v4.0.1 milestone May 29, 2020
@rleungx rleungx requested review from overvenus and nolouch May 29, 2020 08:24
Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

LGTM

@overvenus
Copy link
Member

/approve

Copy link
Contributor

@sre-bot sre-bot left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@disksing
Copy link
Contributor

disksing commented Jun 1, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 1, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Jun 1, 2020

/run-all-tests

@sre-bot sre-bot merged commit 06fbee6 into tikv:master Jun 1, 2020
rleungx added a commit to rleungx/pd that referenced this pull request Jun 5, 2020
Signed-off-by: Ryan Leung <rleungx@gmail.com>
sre-bot pushed a commit that referenced this pull request Jun 5, 2020
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/client Client logic. status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to extend PD client RPC timeout
4 participants