mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #125739 from seans3/ignore-portforward-leak
Ignore reported goroutine leak during SPDY shutdown
This commit is contained in:
commit
905fdda366
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user