pingcap / pingcap/tidb

lightning physical should check the TiDB and PD address in config are in the same cluster

Open
#57,704 1 comment 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

as title. Because physical import will read table structure from TiDB and import data to PD/TiKV. Lightning should make sure table structure and table data are consistent, which means TiDB and PD/TiKV should in the same cluster.

We still allow these behaviours
- If PD address is omitted, lightning will use TiDB HTTP API `/settings` to get PD address when boot up
- PD address can still be manually specified, in case that PD node has multiple addresses like external and internal addresses, and lighting should access only one of them

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.