implement GlobalConfig for grpc server and client#4308
implement GlobalConfig for grpc server and client#4308ti-chi-bot merged 6 commits intotikv:masterfrom
GlobalConfig for grpc server and client#4308Conversation
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
79fd130 to
b479935
Compare
|
Is there any tracking issue? |
e9ada08 to
06e954a
Compare
|
@rleungx PTAL |
|
PTAL |
Codecov Report
@@ Coverage Diff @@
## master #4308 +/- ##
==========================================
- Coverage 75.05% 74.81% -0.24%
==========================================
Files 263 263
Lines 27696 27789 +93
==========================================
+ Hits 20786 20791 +5
- Misses 5085 5141 +56
- Partials 1825 1857 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
I think we better create an issue or doc to talk about the need and design first. |
rename variable `receiver` into `globalConfigWatcherCH` due to it cause ambiguity of variable meaning Signed-off-by: lemonhx <lemonhx@lemonhx.tech>
|
PTAL @JmPotato |
Signed-off-by: lemonhx <lemonhx@lemonhx.tech>
|
/merge |
|
@JmPotato: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions 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. DetailsCommit hash: 1d21648 |
|
/rebuild |
|
/rebuild |
|
/merge |
|
@crazycs520: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions 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. |
|
@crazycs520: DetailsIn response to this:
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. |
* add `global_config` for grpc server and client dummy implement `SplitAndScatterRegions` and modify the kv proto deps for build batch send and store globalconfig by using transaction close tikv#4443 Co-authored-by: crazycs <crazycs520@gmail.com> Signed-off-by: lemonhx <lemonhx@lemonhx.tech> * remove unsafe code from global config test rearrange code from global config client Signed-off-by: lemonhx <lemonhx@lemonhx.tech> * check transaction response in store rename variable `receiver` into `globalConfigWatcherCH` due to it cause ambiguity of variable meaning Signed-off-by: lemonhx <lemonhx@lemonhx.tech> * merged kvproto Signed-off-by: lemonhx <lemonhx@lemonhx.tech> Co-authored-by: crazycs <crazycs520@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: lemonhx lemonhx@lemonhx.tech
What problem does this PR solve?
previously we have discussions about adding global config into PD and store in etcd for easier to maintain the config and for the ease of usage of all components such as tikv tidb and tiflash
What is changed and how it works?
adding three functions into kvproto for loading ,storing and watching the global config, and implement it for etcd
Check List
/global/configcorrectlyTests
Side effects
Related changes
GlobalConfigRule them all pingcap/kvproto#828Release note