-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cmd/trace-agent: fix trace-agent stop behaviour #2980
Conversation
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.
Thanks a lot for this! We will review it soon.
releasenotes/notes/fix-trace-agent-goroutine-leak-c3be040113bbd6d2.yaml
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #2980 +/- ##
==========================================
+ Coverage 53.29% 53.32% +0.02%
==========================================
Files 532 532
Lines 37710 37755 +45
==========================================
+ Hits 20098 20131 +33
- Misses 16414 16427 +13
+ Partials 1198 1197 -1
|
e41aae6
to
d74cfff
Compare
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.
This is great work (and very much needed). Can you please consider my improvement recommendations?
releasenotes/notes/fix-trace-agent-goroutine-leak-c3be040113bbd6d2.yaml
Outdated
Show resolved
Hide resolved
Hi. Please let me know if you have any more comments on this. |
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.
Sorry for the delay, I was on vacation. This is great! Thank you very much! We are currently in code freeze for the 6.10.0 release but will merge this as soon as that's lifted. 🙇
@@ -256,7 +256,7 @@ func (w *StatsWriter) monitor() { | |||
select { | |||
case e, ok := <-monC: | |||
if !ok { | |||
break | |||
return |
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.
👍
r.exit <- struct{}{} | ||
<-r.exit | ||
|
||
r.PreSampler.Stop() |
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.
👍
Seems like it's still ok to merge this, so I'm merging it. Thanks again! |
What does this PR do?
When Stop() is called on trace-agent, this PR