Merge pull request #125739 from seans3/ignore-portforward-leak

Ignore reported goroutine leak during SPDY shutdown
This commit is contained in:
Kubernetes Prow Robot 2024-06-26 17:57:14 -07:00 committed by GitHub
commit 905fdda366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,6 +207,14 @@ func EtcdMain(tests func() int) {
// Both names occurred in practice.
goleak.IgnoreTopFunction("k8s.io/kubernetes/vendor/gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"),
goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun"),
// If there is an error during connection shutdown, SPDY keeps a
// goroutine around for ten minutes, which gets reported as a leak
// (the goroutine is cleaned up after the ten minutes).
//
// https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/moby/spdystream/connection.go#L732-L744
//
// Ignore this reported leak.
goleak.IgnoreTopFunction("github.com/moby/spdystream.(*Connection).shutdown"),
)
stop, err := startEtcd(nil)