-
Notifications
You must be signed in to change notification settings - Fork 726
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: introduce UpdateOption method to configure the PD client online #4240
Conversation
[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. |
7cb285f
to
3c9c7b5
Compare
Codecov Report
@@ Coverage Diff @@
## master #4240 +/- ##
==========================================
- Coverage 74.81% 74.78% -0.03%
==========================================
Files 260 261 +1
Lines 26827 26871 +44
==========================================
+ Hits 20070 20095 +25
- Misses 4974 4986 +12
- Partials 1783 1790 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
3a6c1b7
to
5bc98a6
Compare
Signed-off-by: JmPotato <ghzpotato@gmail.com>
5bc98a6
to
216c0fa
Compare
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
3f20998
to
739e252
Compare
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.
rest LGTM
Signed-off-by: JmPotato <ghzpotato@gmail.com>
cli.UpdateOption(pd.EnableTSOFollowerProxy, false) | ||
// There will be a stream has been chosen before when the TSO Follower Proxy is enabled. | ||
// We need to consume it before the client starts the next round of TSO request batch. | ||
// TODO: fix this corner case. |
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 create an issue for it.
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.
OK. I will create one after this PR is merged.
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.
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: ab33695
|
…ne (tikv#4240) * Introduce ClientOption to configure the PD client (ref tikv#3149) Signed-off-by: JmPotato <ghzpotato@gmail.com> * Refine the code and add some comments Signed-off-by: JmPotato <ghzpotato@gmail.com> * Clean the code Signed-off-by: JmPotato <ghzpotato@gmail.com> * Use a interface method to update the client option Signed-off-by: JmPotato <ghzpotato@gmail.com> * Update the newOption Signed-off-by: JmPotato <ghzpotato@gmail.com> * Remove WithTSOFollowerProxy and WithMaxTSOBatchWaitInterval Signed-off-by: JmPotato <ghzpotato@gmail.com> * Address the comments and refine the test Signed-off-by: JmPotato <ghzpotato@gmail.com> Signed-off-by: hzh0425 <642256541@qq.com>
Signed-off-by: JmPotato ghzpotato@gmail.com
What problem does this PR solve?
Part of #3149. Should be merged after #4204.
What is changed and how it works?
Introduce
ClientOption
to configure the PD client in a more flexible way.Check List
Tests
Side effects
Related changes
Release note