-
Notifications
You must be signed in to change notification settings - Fork 222
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
Support to integrate with the PD HTTP client #1049
Conversation
Signed-off-by: JmPotato <ghzpotato@gmail.com>
06067e5
to
2f38378
Compare
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Can you pass the integration test in your local host? |
@@ -195,9 +198,9 @@ func WithPool(gp Pool) Option { | |||
} | |||
|
|||
// WithPDHTTPClient set the PD HTTP client with the given address and TLS config. | |||
func WithPDHTTPClient(tlsConf *tls.Config, pdaddrs []string) Option { | |||
func WithPDHTTPClient(pdAddrs []string, tlsConf *tls.Config) Option { |
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.
Does it make a compatibility error to TiDB?
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 upgrading client-go, we will naturally perceive this modification before and after compilation. I don't think it will cause compatibility problems.
ad76bad
to
5b11c78
Compare
tikv/kv.go
Outdated
@@ -640,8 +651,10 @@ func (s *KVStore) updateSafeTS(ctx context.Context) { | |||
return | |||
} | |||
safeTS = resp.Resp.(*kvrpcpb.StoreSafeTSResponse).GetSafeTs() | |||
logutil.BgLogger().Info("get min resolved ts from tikv", zap.Uint64("store-id", storeID), zap.Uint64("safe-ts", safeTS)) |
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.
Do we need this info?
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.
Removed.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
5b11c78
to
90bf021
Compare
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!
Ref tikv/pd#7300, tikv/pd#7304