Skip to content

Leak in executor.(*slowQueryRetriever).parseSlowLog #27475

@zhouqiang-cl

Description

@zhouqiang-cl

Bug Report

Please answer these questions before submitting your issue. Thanks!

[2021-08-23T00:10:19.651Z] goleak: Errors on successful test run: found unexpected goroutines:

[2021-08-23T00:10:19.651Z] [Goroutine 15487 in state chan send, 2 minutes, with github.com/pingcap/tidb/executor.(*slowQueryRetriever).parseSlowLog on top of the stack:

[2021-08-23T00:10:19.651Z] goroutine 15487 [chan send, 2 minutes]:

[2021-08-23T00:10:19.651Z] github.com/pingcap/tidb/executor.(*slowQueryRetriever).parseSlowLog(0xc00e0c6180, 0x69e1c30, 0xc02379c000, 0x6a36898, 0xc01da5e400, 0xc0000dbf50, 0x40)

[2021-08-23T00:10:19.651Z] 	/home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/executor/slow_query.go:436 +0x747

[2021-08-23T00:10:19.651Z] github.com/pingcap/tidb/executor.(*slowQueryRetriever).parseDataForSlowLog(0xc00e0c6180, 0x69e1c30, 0xc02379c000, 0x6a36898, 0xc01da5e400)

[2021-08-23T00:10:19.651Z] 	/home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/executor/slow_query.go:192 +0xe6

[2021-08-23T00:10:19.651Z] created by github.com/pingcap/tidb/executor.(*slowQueryRetriever).initializeAsyncParsing

[2021-08-23T00:10:19.651Z] 	/home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/executor/slow_query.go:1046 +0xc7

[2021-08-23T00:10:19.651Z] ]

[2021-08-23T00:10:20.219Z] FAIL	github.com/pingcap/tidb/executor	212.830s


1. Minimal reproduce step (Required)

in ci https://ci.pingcap.net/blue/organizations/jenkins/tidb-unit-test-nightly/detail/tidb-unit-test-nightly/9380/pipeline

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions