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

goleak ttl/ttlworker in the planner/cascades #46948

Closed
Tracked by #41316
hawkingrei opened this issue Sep 13, 2023 · 0 comments · Fixed by #46953
Closed
Tracked by #41316

goleak ttl/ttlworker in the planner/cascades #46948

hawkingrei opened this issue Sep 13, 2023 · 0 comments · Fixed by #46953
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

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

3. What did you see instead (Required)

-- PASS: TestMemTableScan (2.21s)

PASS

coverage: 13.5% of statements

goleak: Errors on successful test run: found unexpected goroutines:

[Goroutine 26931 in state chan receive, with github.com/pingcap/tidb/ttl/client.(*mockClient).WatchCommand.func1 on top of the stack:

goroutine 26931 [chan receive]:

github.com/pingcap/tidb/ttl/client.(*mockClient).WatchCommand.func1()

	ttl/client/command.go:435 +0x4f

created by github.com/pingcap/tidb/ttl/client.(*mockClient).WatchCommand in goroutine 26840

	ttl/client/command.go:434 +0x2e5


 Goroutine 26937 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop on top of the stack:

goroutine 26937 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop(0xc00795f400)

	ttl/ttlworker/del.go:281 +0x2e5

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc00555cf68?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26840 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*JobManager).jobLoop on top of the stack:

goroutine 26840 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*JobManager).jobLoop(0xc007723700)

	ttl/ttlworker/job_manager.go:186 +0x927

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc00613ffd0?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26838

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26932 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop on top of the stack:

goroutine 26932 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop(0xc0072a9dd0)

	ttl/ttlworker/scan.go:315 +0x185

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc004f94fd0?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26933 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop on top of the stack:

goroutine 26933 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop(0xc0072a9e60)

	ttl/ttlworker/scan.go:315 +0x185

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc000f39fd0?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26936 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop on top of the stack:

goroutine 26936 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop(0xc00795f380)

	ttl/ttlworker/del.go:281 +0x2e5

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc00555df68?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26939 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop on top of the stack:

goroutine 26939 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop(0xc00795f500)

	ttl/ttlworker/del.go:281 +0x2e5

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc005aa97d0?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26938 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop on top of the stack:

goroutine 26938 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlDeleteWorker).loop(0xc00795f480)

	ttl/ttlworker/del.go:281 +0x2e5

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc0071baee8?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26935 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop on top of the stack:

goroutine 26935 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop(0xc00764c000)

	ttl/ttlworker/scan.go:315 +0x185

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc005559f68?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c


 Goroutine 26934 in state select, with github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop on top of the stack:

goroutine 26934 [select]:

github.com/pingcap/tidb/ttl/ttlworker.(*ttlScanWorker).loop(0xc0072a9ef0)

	ttl/ttlworker/scan.go:315 +0x185

github.com/pingcap/tidb/ttl/ttlworker.(*baseWorker).loop(0xc0074f9768?)

	ttl/ttlworker/worker.go:134 +0x7a

github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1()

	util/wait_group_wrapper.go:154 +0x59

created by github.com/pingcap/tidb/util.(*WaitGroupWrapper).Run in goroutine 26840

	util/wait_group_wrapper.go:152 +0x7c

]

--

https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb%2Fghpr_unit_test/detail/ghpr_unit_test/33076/pipeline

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants