-
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/router: implement the query region gRPC client #8939
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
8e258ea
to
292cdf2
Compare
924a13a
to
a55a818
Compare
59c7dbe
to
48ff881
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (62.60%) is below the target coverage (74.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #8939 +/- ##
==========================================
+ Coverage 76.25% 76.28% +0.02%
==========================================
Files 466 467 +1
Lines 70733 71084 +351
==========================================
+ Hits 53938 54225 +287
- Misses 13437 13485 +48
- Partials 3358 3374 +16
Flags with carried forward coverage won't be shown. Click here to find out more. |
4b253eb
to
46fd376
Compare
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
46fd376
to
a64c5fe
Compare
Signed-off-by: JmPotato <[email protected]>
leaderURL atomic.Value | ||
// conCtxMgr is used to store the context of the router stream connection(s). | ||
conCtxMgr *cctx.Manager[pdpb.PD_QueryRegionClient] | ||
// updateConnectionCh is used to trigger the connection update actively. |
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.
Should updateConnectionCh be part of conCtxMgr?
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.
The client controls connection updating with the URL change, and conCtxMgr
works more like a storage layer for the connections. It seems there is no particular reason to put the update notifications in there.
Signed-off-by: JmPotato <[email protected]>
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: ref #8690.
What is changed and how does it work?
Check List
Tests
Release note