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

Aggregate goroutine leak when exceed quota #58004

Closed
wshwsh12 opened this issue Dec 5, 2024 · 6 comments · Fixed by #58078
Closed

Aggregate goroutine leak when exceed quota #58004

wshwsh12 opened this issue Dec 5, 2024 · 6 comments · Fixed by #58078
Assignees
Labels
affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. impact/leak severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@wshwsh12
Copy link
Contributor

wshwsh12 commented Dec 5, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Sql file 1.txt

use test;
source 1.txt;

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

No leak

3. What did you see instead (Required)

goroutine 6322 [select, 2 minutes]:
github.com/pingcap/tidb/pkg/executor.readProjection[...](...)
	/home/wshwsh12/project/tidb/pkg/executor/projection.go:492
github.com/pingcap/tidb/pkg/executor.(*projectionWorker).run(0xc019d52e40, {0x70c2808?, 0xc019d211a0?})
	/home/wshwsh12/project/tidb/pkg/executor/projection.go:460 +0x167
created by github.com/pingcap/tidb/pkg/executor.(*ProjectionExec).prepare in goroutine 6305
	/home/wshwsh12/project/tidb/pkg/executor/projection.go:303 +0x6c6

goroutine 6001 [select, 2 minutes]:
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).sendToRespCh(0xc019a38230?, 0xc018ed9ef0?, 0xc0190cf730?, 0x80?)
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:1025 +0xa6
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopResponse(0xc019a38230, 0xc01799df48, 0xc018edf480, 0xc018ed9ef0, {0xc018e84d80, 0x89, 0x89}, 0x0, 0xc019a28380, 0xc0190cf730, ...)
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:1496 +0x77a
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopPagingResult(0xc019a38230, 0x0?, 0x0?, 0xc018ed9ef0, {0xc018e84d80?, 0xc018ef56c0?, 0x0?}, 0x0?, 0xc019a28380, 0xc0190cf730, ...)
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:1392 +0x59
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTaskOnce(0xc019a38230, 0xc01799df48, 0xc019a28380, 0xc0190cf730)
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:1319 +0xfcc
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTask(0xc019a38230, {0x70c2808, 0xc019a2d710}, 0x0?, 0xc0190cf730)
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:1169 +0x16e
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).run(0xc019a38230, {0x70c2808, 0xc019a2d710})
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:836 +0x111
created by github.com/pingcap/tidb/pkg/store/copr.(*copIterator).open in goroutine 3266
	/home/wshwsh12/project/tidb/pkg/store/copr/coprocessor.go:884 +0x105

4. What is your TiDB version? (Required)

master

@wshwsh12 wshwsh12 added the type/bug The issue is confirmed as a bug. label Dec 5, 2024
@xzhangxian1008
Copy link
Contributor

/assign

@xzhangxian1008
Copy link
Contributor

/remove-label may-affects-5.4

@ti-chi-bot ti-chi-bot bot removed the may-affects-5.4 This bug maybe affects 5.4.x versions. label Dec 18, 2024
@xzhangxian1008
Copy link
Contributor

/remove-label may-affects-6.1

@xzhangxian1008
Copy link
Contributor

/remove-label may-affects-6.5

@xzhangxian1008
Copy link
Contributor

/remove-label may-affects-7.1

@xzhangxian1008
Copy link
Contributor

/remove-label may-affects-7.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. impact/leak 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.

3 participants