-
Notifications
You must be signed in to change notification settings - Fork 366
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
fix: goroutine leaks #2757
Conversation
Codecov Report❌ Patch coverage is ❌ Your project check has failed because the head coverage (74.32%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #2757 +/- ##
==========================================
- Coverage 74.33% 74.32% -0.00%
==========================================
Files 484 484
Lines 57307 57336 +29
==========================================
+ Hits 42591 42612 +21
- Misses 11731 11734 +3
- Partials 2985 2990 +5 ☔ 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
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.
f3fe0c1 to
fc069af
Compare
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.
LGTM
For reviewers: please see changes in
pkg/testutil/leakdetection.gointernal/dispatch/combined/combined.go