Skip to content

Commit

Permalink
executor: fix goleak client-go/v2/config/retry.(*Config).createBackof…
Browse files Browse the repository at this point in the history
…fFn.newBackoffFn (#57251)

close #57250
  • Loading branch information
hawkingrei authored Nov 11, 2024
1 parent 426ce3e commit ceb7181
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/executor/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func TestMain(m *testing.M) {
goleak.IgnoreTopFunction("github.com/pingcap/tidb/pkg/ttl/ttlworker.(*ttlScanWorker).loop"),
goleak.IgnoreTopFunction("github.com/pingcap/tidb/pkg/ttl/client.(*mockClient).WatchCommand.func1"),
goleak.IgnoreTopFunction("github.com/pingcap/tidb/pkg/ttl/ttlworker.(*JobManager).jobLoop"),
// backoff function will lead to sleep, so there is a high probability of goroutine leak while it's doing backoff.
goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/config/retry.(*Config).createBackoffFn.newBackoffFn.func2"),
}
callback := func(i int) int {
testDataMap.GenerateOutputIfNeeded()
Expand Down

0 comments on commit ceb7181

Please sign in to comment.