-
Notifications
You must be signed in to change notification settings - Fork 363
fix: goroutine leaks #2757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: goroutine leaks #2757
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2757 +/- ##
==========================================
- Coverage 77.71% 77.68% -0.03%
==========================================
Files 472 472
Lines 49709 49738 +29
==========================================
+ Hits 38625 38632 +7
- Misses 8232 8246 +14
- Partials 2852 2860 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d86c005 to
b326cfb
Compare
b326cfb to
efba795
Compare
701ad8a to
e63c319
Compare
ad6867a to
1a145a0
Compare
1a145a0 to
f3fe0c1
Compare
| var redispatch dispatch.Dispatcher | ||
|
|
||
| cts := caveattypes.TypeSetOrDefault(opts.caveatTypeSet) | ||
| if opts.upstreamAddr == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI major change on the setup. Notice how before, redispatch's content was getting overwritten on line 307
tstirrat15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
| } | ||
|
|
||
| // Start is async so that prepopulating doesn't block the server start. | ||
| // The caller must cancel the context before calling Close. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof. This seems like a footgun.
For reviewers: please see changes in
pkg/testutil/leakdetection.gointernal/dispatch/combined/combined.go