From f68fb05c3e6ba3319af624fefc6bd31246a126cc Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Tue, 1 Feb 2022 10:37:51 -0800 Subject: [PATCH] leakcheck: ignore http read/write goroutine (#5182) --- internal/leakcheck/leakcheck.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/leakcheck/leakcheck.go b/internal/leakcheck/leakcheck.go index 946c575f1..80e43beb6 100644 --- a/internal/leakcheck/leakcheck.go +++ b/internal/leakcheck/leakcheck.go @@ -42,6 +42,12 @@ var goroutinesToIgnore = []string{ "runtime_mcall", "(*loggingT).flushDaemon", "goroutine in C code", + // Ignore the http read/write goroutines. gce metadata.OnGCE() was leaking + // these, root cause unknown. + // + // https://github.com/grpc/grpc-go/issues/5171 + // https://github.com/grpc/grpc-go/issues/5173 + "created by net/http.(*Transport).dialConn", } // RegisterIgnoreGoroutine appends s into the ignore goroutine list. The