pingcap / pingcap/tidb

Lightning uses incorrect variables during stats collection

Open
#64,245 0 comments 0 reactions 1 assignee Claimed by @0xPoe View on GitHub
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

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.