pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.19k stars 5.84k forks source link

DATA_RACE:github.com/pingcap/tidb/executor_test.(*testFastAnalyze).TestFastAnalyze() failed #20111

Closed sre-bot closed 3 years ago

sre-bot commented 4 years ago

DATA_RACE:github.com/pingcap/tidb/executor_test.(*testFastAnalyze).TestFastAnalyze()

[2020-09-18T07:51:07.657Z] WARNING: DATA RACE
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor_test.(*testFastAnalyze).TestFastAnalyze()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze_test.go:327 +0x3da
[2020-09-18T07:51:07.657Z]   runtime.call32()
[2020-09-18T07:51:07.657Z]       /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-09-18T07:51:07.657Z]   reflect.Value.Call()
[2020-09-18T07:51:07.657Z]       /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850 +0x9aa
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739 +0x113
[2020-09-18T07:51:07.657Z]
[2020-09-18T07:51:07.657Z] Previous read at 0x0000071996a8 by goroutine 893:
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*AnalyzeFastExec).buildStats()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze.go:1126 +0x4f
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.analyzeFastExec()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze.go:590 +0x53
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*AnalyzeExec).analyzeWorker()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze.go:209 +0x7fa
[2020-09-18T07:51:07.657Z]
[2020-09-18T07:51:07.657Z] Goroutine 605 (running) created at:
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkCall()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:734 +0x4a3
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkTest()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:832 +0x1b9
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).doRun()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:666 +0x13a
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).asyncRun.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:650 +0xf7
[2020-09-18T07:51:07.657Z]
[2020-09-18T07:51:07.657Z] Goroutine 893 (finished) created at:
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*AnalyzeExec).Next()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze.go:88 +0x1b0
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.Next()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:268 +0x27d
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:518 +0x38e
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:400 +0x24d
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor.(*ExecStmt).Exec()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:353 +0x3f6
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/session.runStmt()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1206 +0x2c1
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/session.(*session).ExecuteStmt()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1171 +0xa57
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/util/testkit.(*TestKit).Exec()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:160 +0x2f1
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/util/testkit.(*TestKit).MustExec()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:206 +0x91
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor_test.(*testSuite1).TestAnalyzeIndex.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze_test.go:443 +0x14a
[2020-09-18T07:51:07.657Z]   github.com/pingcap/tidb/executor_test.(*testSuite1).TestAnalyzeIndex()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/analyze_test.go:445 +0x2a2
[2020-09-18T07:51:07.657Z]   runtime.call32()
[2020-09-18T07:51:07.657Z]       /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-09-18T07:51:07.657Z]   reflect.Value.Call()
[2020-09-18T07:51:07.657Z]       /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850 +0x9aa
[2020-09-18T07:51:07.657Z]   github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-09-18T07:51:07.657Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739 +0x113
[2020-09-18T07:51:07.658Z] ==================

Latest failed builds: https://internal.pingcap.net/idc-jenkins/job/tidb_ghpr_unit_test/52397/display/redirect

sre-bot commented 4 years ago

New failed test found: https://internal.pingcap.net/idc-jenkins/job/tidb_ghpr_unit_test/53090/display/redirect