From 8c2ae78f85ed24dd5a943694e22731774c1aa18a Mon Sep 17 00:00:00 2001 From: Lidor Carmel Date: Tue, 25 Apr 2023 10:29:23 -0700 Subject: [PATCH] leaktest: ignore pgconn async close worker Epic: none Fixes: #97698 Fixes: #97346 Release note: None --- pkg/util/leaktest/leaktest.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/util/leaktest/leaktest.go b/pkg/util/leaktest/leaktest.go index e3af196617fe..07ff114682fc 100644 --- a/pkg/util/leaktest/leaktest.go +++ b/pkg/util/leaktest/leaktest.go @@ -58,6 +58,8 @@ func interestingGoroutines() map[int64]string { strings.Contains(stack, "sentry-go.(*HTTPTransport).worker") || // Ignore the opensensus worker, which is created by the event exporter. strings.Contains(stack, "go.opencensus.io/stats/view.(*worker).start") || + // Ignore pgconn which creates a goroutine to do an async cleanup. + strings.Contains(stack, "github.com/jackc/pgconn.(*PgConn).asyncClose.func1") || // Seems to be gccgo specific. (runtime.Compiler == "gccgo" && strings.Contains(stack, "testing.T.Parallel")) || // Ignore intentionally long-running logging goroutines that live for the