Skip to content

Commit

Permalink
Ignore ristretto.Cache goroutines
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Apr 17, 2023
1 parent cb20e72 commit c5d2f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/util/test/leak.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ func goLeakOptions() []goleak.Option {
// it gets closed when we close the BucketStore. However, we currently don't close BucketStore
// on store-gateway termination so it never gets terminated.
goleak.IgnoreTopFunction("github.com/grafana/mimir/pkg/storegateway/indexheader.NewReaderPool.func1"),

// The FastRegexMatcher uses a global instance of ristretto.Cache which is never stopped,
// so we ignore its gouroutines and then ones from glog which is a ristretto dependency.
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*defaultPolicy).processItems"),
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*Cache).processItems"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
}
}

0 comments on commit c5d2f54

Please sign in to comment.