Lightning uses incorrect variables during stats collection
Open
component/lightning
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
Check the code:
https://github.com/pingcap/tidb/blob/bce559b421ad7436c05f61f6222e11cb6c01adbe/lightning/pkg/importer/tidb.go#L67
Lightning is still using DistSQLScanConcurrency and IndexSerialScanConcurrency. But it has been decapred for a long time.
### 2. What did you expect to see? (Required)
Use the TiDBAnalyzeDistSQLScanConcurrency.
### 3. What did you see instead (Required)
Used the old values.
### 4. What is your TiDB version? (Required)
master
Contributor guide
Assessment
This issue has not been assessed yet.