Skip to content

Commit a5268a2

Browse files
authored
tests: ignore goroutines created by resolveFlushedLocks (#57198)
close #57191
1 parent ef6662e commit a5268a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/realtikvtest/testkit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ func RunTestMain(m *testing.M) {
8989
// backoff function will lead to sleep, so there is a high probability of goroutine leak while it's doing backoff.
9090
goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/config/retry.(*Config).createBackoffFn.newBackoffFn.func2"),
9191
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
92+
// the resolveFlushedLocks goroutine runs in the background to commit or rollback locks.
93+
goleak.IgnoreAnyFunction("github.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).resolveFlushedLocks.func1"),
9294
}
9395
callback := func(i int) int {
9496
// wait for MVCCLevelDB to close, MVCCLevelDB will be closed in one second

0 commit comments

Comments
 (0)