br.pkg.pdutil.PdController could leverage PDClient for most functions.
Open
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
PdController gets meta info using PD's HTTP interface instead of the gRPC interface bundled by the PDClient, for example, https://github.com/pingcap/tidb/blob/6a0638b0c1f0f948a6b0be93ecdcb8bc2c66e339/br/pkg/pdutil/pd.go#L387
which is verbose and makes it hard to change the behaviour while BR talks to the PDs.
Contributor guide
Assessment
This issue has not been assessed yet.