data race in Processinfo with index scan #45126
Labels
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
In GenLogFields function, need to read info.StmtCtx.IndexNames, which may be modified in executor building phase.
GenLogFields:
tidb/util/util.go
Line 161 in 6f79794
Build phase:
tidb/executor/builder.go
Line 3814 in 6f79794
This will cause a data race.
Test code:
2. What did you expect to see? (Required)
No error, no race.
3. What did you see instead (Required)
Without -race flag:
With -race flag:
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: