mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Ignore reported goroutine leak during SPDY shutdown
This commit is contained in:
parent
44c1a0eec2
commit
5ba8773126
@ -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