-
Notifications
You must be signed in to change notification settings - Fork 286
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
fix(cdc): failed to start when connects to pd with multiple endpoints and the 1st endpoint is not available (#4779) #5209
fix(cdc): failed to start when connects to pd with multiple endpoints and the 1st endpoint is not available (#4779) #5209
Conversation
Signed-off-by: just1900 <[email protected]>
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
Codecov Report
@@ Coverage Diff @@
## release-5.3 #5209 +/- ##
================================================
Coverage ? 55.7352%
================================================
Files ? 224
Lines ? 23870
Branches ? 0
================================================
Hits ? 13304
Misses ? 9239
Partials ? 1327 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ca1d548
|
/run-unit-test |
/run-all-tests |
/run-verify |
This is an automated cherry-pick of #4779
What problem does this PR solve?
Issue Number: close #4777
What is changed and how it works?
Changed:
remove the
grpcTLSOption
in etcd client config,how it works:
etcd-io/etcd#11184 have provide an workaround to set authority to deal with the problem indicated in etcd-io/etcd#11180, what it does it to create an TransportCredentialsWithDialer interface which wraps the original
grpccredentials.TransportCredentials
. and its implementation here, thisTransportCredentialsWithDialer
will set authority to the corresponding enpoint atClientHandshake
period first, and then delegate other logic to originalTransportCredentials
, so as to ensure the authority is correct.But if we set
grpcTLSOption
in dialOptions, this will overwrite the existingTransportCredentialsWithDialer
with original grpcTransportCredentials
.tiflow/pkg/security/credential.go
Lines 52 to 57 in 20626ba
This PR will remove the the
grpcTLSOption
in etcd client config, thus won't overwrite the existingTransportCredentialsWithDialer
.Check List
Tests
Code changes
Side effects
Related changes
Release note