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 telemetry_test.TestReport #26718

Closed
Tracked by #25899
zhouqiang-cl opened this issue Jul 29, 2021 · 3 comments
Closed
Tracked by #25899

data race in telemetry_test.TestReport #26718

zhouqiang-cl opened this issue Jul 29, 2021 · 3 comments
Labels
component/test severity/major type/bug The issue is confirmed as a bug.

Comments

@zhouqiang-cl
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

[2021-07-28T14:22:43.954Z] WARNING: DATA RACE
[2021-07-28T14:22:43.954Z] Write at 0x00c014605da1 by goroutine 72:
[2021-07-28T14:22:43.954Z]   github.com/pingcap/tidb/telemetry_test.TestReport()
[2021-07-28T14:22:43.954Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/telemetry/telemetry_test.go:112 +0x104
[2021-07-28T14:22:43.954Z]   testing.tRunner()
[2021-07-28T14:22:43.954Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-07-28T14:22:43.954Z] 
[2021-07-28T14:22:43.954Z] Previous read at 0x00c014605da1 by goroutine 103:
[2021-07-28T14:22:43.954Z]   github.com/pingcap/tidb/session.(*session).ExecuteStmt()
[2021-07-28T14:22:43.954Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1660 +0x13e5
[2021-07-28T14:22:43.955Z]   github.com/pingcap/tidb/testkit.(*TestKit).Exec()
[2021-07-28T14:22:43.955Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/testkit/testkit.go:106 +0x2dc
[2021-07-28T14:22:43.955Z]   github.com/pingcap/tidb/testkit.(*TestKit).MustExec()
[2021-07-28T14:22:43.955Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/testkit/testkit.go:60 +0x96
[2021-07-28T14:22:43.955Z]   github.com/pingcap/tidb/telemetry_test.TestTxnUsageInfo.func1()
[2021-07-28T14:22:43.955Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/telemetry/data_feature_usage_test.go:45 +0x364
[2021-07-28T14:22:43.955Z]   testing.tRunner()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-07-28T14:22:43.955Z] 
[2021-07-28T14:22:43.955Z] Goroutine 72 (running) created at:
[2021-07-28T14:22:43.955Z]   testing.(*T).Run()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1238 +0x5d7
[2021-07-28T14:22:43.955Z]   testing.runTests.func1()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1511 +0xa6
[2021-07-28T14:22:43.955Z]   testing.tRunner()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-07-28T14:22:43.955Z]   testing.runTests()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1509 +0x612
[2021-07-28T14:22:43.955Z]   testing.(*M).Run()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1417 +0x3b3
[2021-07-28T14:22:43.955Z]   go.uber.org/goleak.VerifyTestMain()
[2021-07-28T14:22:43.955Z]       /nfs/cache/mod/go.uber.org/goleak@v1.1.10/testmain.go:53 +0x5e
[2021-07-28T14:22:43.955Z]   github.com/pingcap/tidb/telemetry.TestMain()
[2021-07-28T14:22:43.955Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/telemetry/main_test.go:36 +0xe4
[2021-07-28T14:22:43.955Z]   main.main()
[2021-07-28T14:22:43.955Z]       _testmain.go:67 +0x271
[2021-07-28T14:22:43.955Z] 
[2021-07-28T14:22:43.955Z] Goroutine 103 (running) created at:
[2021-07-28T14:22:43.955Z]   testing.(*T).Run()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1238 +0x5d7
[2021-07-28T14:22:43.955Z]   github.com/pingcap/tidb/telemetry_test.TestTxnUsageInfo()
[2021-07-28T14:22:43.955Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/telemetry/data_feature_usage_test.go:36 +0x149
[2021-07-28T14:22:43.955Z]   testing.tRunner()
[2021-07-28T14:22:43.955Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-07-28T14:22:43.955Z] ==================

1. Minimal reproduce step (Required)

in ci https://ci.pingcap.net/blue/rest/organizations/jenkins/pipelines/tidb_ghpr_unit_test/runs/8120/nodes/108/steps/276/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)

@zhouqiang-cl zhouqiang-cl added the type/bug The issue is confirmed as a bug. label Jul 29, 2021
@tisonkun
Copy link
Contributor

possibly fixed by #26650 (comment)

@zhouqiang-cl
Copy link
Contributor Author

No see it again

@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/test severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants