Skip to content
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

Merged
merged 5 commits into from
Nov 9, 2023

Conversation

JmPotato
Copy link
Member

@JmPotato JmPotato commented Nov 3, 2023

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato marked this pull request as ready for review November 7, 2023 03:12
@HuSharp
Copy link
Member

HuSharp commented Nov 7, 2023

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 {
Copy link
Member

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?

Copy link
Member Author

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.

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))
Copy link
Member

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?

Copy link
Member Author

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>
Copy link
Member

@HuSharp HuSharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@disksing disksing merged commit 845e3b0 into tikv:master Nov 9, 2023
9 of 10 checks passed
@JmPotato JmPotato deleted the integrate_pd_http_client branch November 13, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants