Skip to content

Support to integrate with the PD HTTP client#1049

Merged
disksing merged 5 commits intotikv:masterfrom
JmPotato:integrate_pd_http_client
Nov 9, 2023
Merged

Support to integrate with the PD HTTP client#1049
disksing merged 5 commits intotikv:masterfrom
JmPotato:integrate_pd_http_client

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?


// 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.

@JmPotato JmPotato force-pushed the integrate_pd_http_client branch from ad76bad to 5b11c78 Compare November 7, 2023 06:12
tikv/kv.go Outdated
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>
@JmPotato JmPotato force-pushed the integrate_pd_http_client branch from 5b11c78 to 90bf021 Compare November 7, 2023 06:15
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
@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