-
Notifications
You must be signed in to change notification settings - Fork 287
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
kv/client: add global grpc connection pool #2511
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. |
/run-all-tests |
/run-integration-tests |
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
cdc/kv/grpc_pool.go
Outdated
// reference of the shared connection | ||
type GrpcPool interface { | ||
// GetConn returns an available gRPC ClientConn | ||
GetConn(ctx context.Context, target string) (*sharedConn, error) |
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.
When we cancel the ctx are on-going connections also cancelled?
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.
add bounded context in grpc pool
/run-all-tests |
/run-leak-tests |
/run-all-tests |
5ea2268
to
fc343a6
Compare
/run-all-tests |
/run-kafka-tests |
PTAL @overvenus @liuzix |
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
/run-all-tests |
/run-all-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #2511 +/- ##
================================================
- Coverage 56.1544% 55.9342% -0.2202%
================================================
Files 169 169
Lines 20465 20567 +102
================================================
+ Hits 11492 11504 +12
- Misses 7848 7938 +90
Partials 1125 1125 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 2669675
|
/run-integration-tests |
1 similar comment
/run-integration-tests |
/run-integration-tests |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #2531. |
In response to a cherrypick label: new pull request created: #2533. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #2534. |
In response to a cherrypick label: new pull request created: #2535. |
What problem does this PR solve?
Add global gRPC connection pool in cdc server.
What is changed and how it works?
capture
, the pool is created before acapture
starts running and destroyed after acapture
suicides or exits.Check List
Tests
Release note