-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[processor/groupbytrace] Leaked goroutine in doWithTimeout #32572
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Unassigning myself, I found this while working on the related PR, but the PR does not resolve this issue and I'd prefer to hear from code owners to know the best path forward given the use cases of the method in question. 👍 |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I think the main problem is that the callbacks are not receiving context with a timeout so the blocking call won't be canceled. I'd need to refactor this component in order to implement this, but this is low on my priority list. Do you want to give this a shot? |
I'm not sure I'd be able to get to it any time soon, but I appreciate the guidance here. Agreed on the suggested path forward. 👍 |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
processor/groupbytrace
Describe the issue you're reporting
The method
doWithTimeout
is used to run a method with a timeout. However, if the method being called takes longer than the timeout, there's no way to cancel it if it's blocking or running longer than the collector itself. This results in a leaked goroutine.Ideally there would be some way to shutdown down the called function. This would probably require some kind of enforced function format where the function could be shutdown by a context cancel or something along those lines. I don't know if this is possible or not in the processor.
goleak
output:The text was updated successfully, but these errors were encountered: