diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-01-17 13:48:18 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-01-17 13:48:18 +0300 |
commit | 7e80ece2ebfd82776285c83362e6874dacb5b26a (patch) | |
tree | 9743724ec61b44c8e0c768eaeea90603f3ab4ae2 /internal/testhelper | |
parent | 60e00c9b19ab28605c0b80931683feddcc62d971 (diff) | |
parent | 8a29ef51192cc57770dcd7966d9af8173eb7ff4d (diff) |
Merge branch 'smh-log-worker' into 'master'
Implement basic transaction management with write-ahead logging
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5020
Merged-by: Sami Hiltunen <shiltunen@gitlab.com>
Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Approved-by: Patrick Steinhardt <psteinhardt@gitlab.com>
Reviewed-by: Patrick Steinhardt <psteinhardt@gitlab.com>
Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com>
Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Diffstat (limited to 'internal/testhelper')
-rw-r--r-- | internal/testhelper/leakage.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/testhelper/leakage.go b/internal/testhelper/leakage.go index ffec6c7ae..5dc9cae20 100644 --- a/internal/testhelper/leakage.go +++ b/internal/testhelper/leakage.go @@ -16,6 +16,10 @@ import ( // mustHaveNoGoroutines panics if it finds any Goroutines running. func mustHaveNoGoroutines() { if err := goleak.Find( + // BadgerDB depends on Ristretto which uses glog for logging. glog initializes + // on import a log flushing goroutine that keeps running in the background. + // Ignore this goroutine as there is no way to stop it. + goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), // opencensus has a "defaultWorker" which is started by the package's // `init()` function. There is no way to stop this worker, so it will leak // whenever we import the package. |