-
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
[extension/jaegarremotesamplingextension/internal] Leaking goroutine on shutdown #31157
Labels
Comments
crobert-1
added
needs triage
New item requiring triage
bug
Something isn't working
labels
Feb 9, 2024
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@crobert-1 are you addressing this yourself or looking for help? |
Looking for help at the moment. If no one's able to take this soon I'll plan on eventually proposing a solution. 👍 |
I would like to take this up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
extension/jaegerremotesampling
Describe the issue you're reporting
When attempting to add
goleak
to theinternal
package of thejaegarremotesampling
extension, the following test fails:The actual failing test is
TestSamplingGRPCServer_Shutdown/context_timed_out
.The leaked goroutine is started here:
opentelemetry-collector-contrib/extension/jaegerremotesampling/internal/grpc.go
Line 94 in 8ccadc3
What's happening is the
Shutdown
method for the sampling GRPC server starts a goroutine that attempts to gracefully shutdown the server. As soon as the context is cancelled though (graceful stop took too long),Stop
is called and the main routine will return, leaking the sub-goroutine that's attemptingGracefulStop
.The text was updated successfully, but these errors were encountered: