-
Notifications
You must be signed in to change notification settings - Fork 727
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, server: add ScanRegions gRPC protocol support #1535
Conversation
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1535 +/- ##
==========================================
+ Coverage 67.46% 67.69% +0.22%
==========================================
Files 158 158
Lines 15659 15689 +30
==========================================
+ Hits 10565 10620 +55
+ Misses 4130 4102 -28
- Partials 964 967 +3
Continue to review full report at Codecov.
|
Signed-off-by: disksing <[email protected]>
Rest LGTM |
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
Signed-off-by: disksing <[email protected]>
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.
LGTM
/test |
/rebuild |
* tiny clean up code (#1526) Signed-off-by: Ryan Leung <[email protected]> * config: enable use region storage by default (#1524) * config: default enable use region storage * schedulers: let hot region balance not affect by balance-region-scheduler-limit (#1522) Signed-off-by: nolouch <[email protected]> * log: do not add stack to error log (#1532) * *: replace gofail with pingcap/failpoint (#1534) * *: replace gofail with pingcap/failpoint Signed-off-by: disksing <[email protected]> * fix typo Signed-off-by: disksing <[email protected]> * fix typo Signed-off-by: disksing <[email protected]> * Update server/cluster_test.go Co-Authored-By: Lonng <[email protected]> * Update server/tso.go Co-Authored-By: Lonng <[email protected]> * Update server/tso.go Co-Authored-By: Lonng <[email protected]> * check enable failpoint result Signed-off-by: disksing <[email protected]> * Update server/cluster.go Co-Authored-By: Lonng <[email protected]> * server: set timeout for MoveLeader (#1533) * server: set timeout for MoveLeader Signed-off-by: disksing <[email protected]> * client, server: add ScanRegions gRPC protocol support (#1535) * client, server: support ScanRegions gRPC protocol Signed-off-by: disksing <[email protected]> * schedule: actively push operator (#1536) * schedule: actively push operator Signed-off-by: nolouch <[email protected]> * *: update some dead links (#1543) * update links Signed-off-by: Ryan Leung <[email protected]> * Add windows build script (#1540) Signed-off-by: Ana Hobden <[email protected]> * fix operator timeout metrics (#1541) Signed-off-by: Ryan Leung <[email protected]> * *:Rollback config in store when kv.persist failed (#1476) * tests: independent region sync test (#1545) * tests: independent syncer region test Signed-off-by: nolouch <[email protected]> * schedule: operator limit for stores (#1474) * add store limit for scheduling Signed-off-by: Ryan Leung <[email protected]> * statistic: add the statistic of flow (#1548) * store_statistic: add the statistic of flow Signed-off-by: nolouch <[email protected]>
What problem does this PR solve?
There are use cases need to iterate all PD regions (for example TiDB resolveLock). It is too slow to query regions one by one.
What is changed and how it works?
Add
ScanRegions
gRPC method to query regions in batch.Note: Merge after pingcap/kvproto#396
Check List
Tests
Side effects
Related changes