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 in github.com/pingcap/tidb/bindinfo_test.TestGCBindRecord() #28777

Closed
Tracked by #25899
zhouqiang-cl opened this issue Oct 13, 2021 · 1 comment · Fixed by #29053
Closed
Tracked by #25899

data race in github.com/pingcap/tidb/bindinfo_test.TestGCBindRecord() #28777

zhouqiang-cl opened this issue Oct 13, 2021 · 1 comment · Fixed by #29053
Assignees
Labels

Comments

@zhouqiang-cl
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

[2021-10-13T02:29:03.543Z] WARNING: DATA RACE
[2021-10-13T02:29:03.543Z] Write at 0x000007d29e38 by goroutine 151:
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/bindinfo_test.TestGCBindRecord()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/bindinfo/bind_serial_test.go:892 +0xea
[2021-10-13T02:29:03.543Z]   testing.tRunner()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-10-13T02:29:03.543Z] 
[2021-10-13T02:29:03.543Z] Previous read at 0x000007d29e38 by goroutine 119:
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/domain.(*Domain).globalBindHandleWorkerLoop.func1()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/domain/domain.go:1029 +0xc4
[2021-10-13T02:29:03.543Z] 
[2021-10-13T02:29:03.543Z] Goroutine 151 (running) created at:
[2021-10-13T02:29:03.543Z]   testing.(*T).Run()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1238 +0x5d7
[2021-10-13T02:29:03.543Z]   testing.runTests.func1()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1511 +0xa6
[2021-10-13T02:29:03.543Z]   testing.tRunner()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-10-13T02:29:03.543Z]   testing.runTests()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1509 +0x612
[2021-10-13T02:29:03.543Z]   testing.(*M).Run()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1417 +0x3b3
[2021-10-13T02:29:03.543Z]   go.uber.org/goleak.VerifyTestMain()
[2021-10-13T02:29:03.543Z]       /nfs/cache/mod/go.uber.org/goleak@v1.1.11-0.20210813005559-691160354723/testmain.go:53 +0x5e
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/bindinfo_test.TestMain()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/bindinfo/main_test.go:30 +0xe4
[2021-10-13T02:29:03.543Z]   main.main()
[2021-10-13T02:29:03.543Z]       _testmain.go:169 +0x271
[2021-10-13T02:29:03.543Z] 
[2021-10-13T02:29:03.543Z] Goroutine 119 (running) created at:
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/domain.(*Domain).globalBindHandleWorkerLoop()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/domain/domain.go:1022 +0x84
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/domain.(*Domain).LoadBindInfoLoop()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/domain/domain.go:1015 +0x1fe
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/session.BootstrapSession()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/session/session.go:2498 +0x3d9
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/testkit.bootstrap()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/testkit/mockstore.go:48 +0x7c
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/testkit.CreateMockStoreAndDomain()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/testkit/mockstore.go:41 +0xc8
[2021-10-13T02:29:03.543Z]   github.com/pingcap/tidb/bindinfo_test.TestGCBindRecord()
[2021-10-13T02:29:03.543Z]       /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/bindinfo/bind_serial_test.go:887 +0x66
[2021-10-13T02:29:03.543Z]   testing.tRunner()
[2021-10-13T02:29:03.543Z]       /usr/local/go/src/testing/testing.go:1193 +0x202

1. Minimal reproduce step (Required)

in ci https://ci.pingcap.net/blue/rest/organizations/jenkins/pipelines/tidb-unit-test-nightly/runs/12353/nodes/115/steps/524/log/?start=0

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants