Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data race detected in the test #27274

Closed
AilinKid opened this issue Aug 17, 2021 · 2 comments · Fixed by #27866
Closed

data race detected in the test #27274

AilinKid opened this issue Aug 17, 2021 · 2 comments · Fixed by #27866
Labels
component/executor severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@AilinKid
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

[2021-08-17T03:01:44.935Z] ==================
[2021-08-17T03:01:44.935Z] WARNING: DATA RACE
[2021-08-17T03:01:44.935Z] Read at 0x00c00cf9bae8 by goroutine 59:
[2021-08-17T03:01:44.935Z]   github.com/pingcap/parser/types.(*FieldType).EvalType()
[2021-08-17T03:01:44.935Z]       /nfs/cache/mod/github.com/pingcap/parser@v0.0.0-20210812031716-f8bd71b2c3d9/types/field_type.go:96 +0x44
[2021-08-17T03:01:44.935Z]   github.com/pingcap/tidb/statistics.NewHistogram()
[2021-08-17T03:01:44.935Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/statistics/histogram.go:97 +0x80
[2021-08-17T03:01:44.935Z]   github.com/pingcap/tidb/statistics.PseudoTable()
[2021-08-17T03:01:44.935Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/statistics/table.go:703 +0x34c
[2021-08-17T03:01:44.935Z]   github.com/pingcap/tidb/statistics/handle.(*Handle).GetPartitionStats()
[2021-08-17T03:01:44.935Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/statistics/handle/handle.go:525 +0x159
[2021-08-17T03:01:44.935Z]   github.com/pingcap/tidb/statistics/handle.(*Handle).GetTableStats()
[2021-08-17T03:01:44.935Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/statistics/handle/handle.go:517 +0xe12
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/statistics/handle.(*Handle).HandleAutoAnalyze()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/statistics/handle/update.go:952 +0xde3
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/domain.(*Domain).autoAnalyzeWorker()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/domain/domain.go:1350 +0x2ea
[2021-08-17T03:01:44.936Z] 
[2021-08-17T03:01:44.936Z] Previous write at 0x00c00cf9bae8 by goroutine 125:
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.tryFillViewColumnType()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/show.go:1776 +0x67c
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*hugeMemTableRetriever).dataForColumnsInTable()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/infoschema_reader.go:663 +0x133
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*hugeMemTableRetriever).setDataForColumns()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/infoschema_reader.go:652 +0x2ca
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*hugeMemTableRetriever).retrieve()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/infoschema_reader.go:2556 +0x333
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*MemTableReaderExec).Next()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/memtable_reader.go:114 +0x6f8
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.Next()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:286 +0x2a8
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*SelectionExec).Next()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:1302 +0x715
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.Next()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:286 +0x2a8
[2021-08-17T03:01:44.936Z]   github.com/pingcap/tidb/executor.(*projectionInputFetcher).run()
[2021-08-17T03:01:44.936Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/projection.go:381 +0x498
[2021-08-17T03:01:44.936Z] 

CI link https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/9376/pipeline

2. What did you expect to see? (Required)

No Race

3. What did you see instead (Required)

Race

4. What is your TiDB version? (Required)

Master

@AilinKid AilinKid added type/bug The issue is confirmed as a bug. component/executor sig/execution SIG execution labels Aug 17, 2021
@wshwsh12
Copy link
Contributor

Duplicate of #26539

@wshwsh12 wshwsh12 marked this as a duplicate of #26539 Aug 23, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/executor severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants