-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
[Bug]: Applying Wait Strategy adds 4 Go Routine Leaks in v13.0 #2007
Comments
Just to double check, this issue report if for testcontainers-go |
Yep this is for If that is what you mean, then this issue could be considered closed since Thanks for your quick response, let me know if I've misunderstood anything or can offer any more information to help. 🙂 |
Hi @mhogara sorry for the delay, I was on Xmas PTO 🎄 Yeah, if this issue is related to 0.13.0 only, and you confirmed that |
Because this issue relates to a very old release, and my previous comment about the existence of #2008, I'm closing this one. Thanks! |
Testcontainers version
0.13.0
Using the latest Testcontainers version?
No
Host OS
Linux
Host arch
x86_64
Go version
1.21.3
Docker version
Docker info
What happened?
Initial Problem
In a test I work on, when adding a call to
defer goleak.VerifyNone(t)
, we discovered that 4 Goroutines are leaking; this stems from a call toWithExposedService
/waitForLog
. We are usingNewLocalDockerCompose
as well. We have found this happens independent of service/docker compose file, but if we comment out the wait strategy for an exposed service, the leaks stop. I'll add reproduction code under additional information to provide clarity.Additional Context/What I've Observed
I've done some debugging and believe the (leaking) go routines stem from
applyStrategyToRunningContainer
. It might also have to do with the Docker client thattestcontainers-go
uses, but I am not as sure of that. I have also found a similar go routine leak(though possibly not the same) in the latest version oftestcontainers-go
; I'll make a separate issue for that and link back to this in the off chance they are separate issues. Besides my issues, I was not able to find any open issues for goroutine leaks.In the next section, I'll include the output the test spits out.
Please let me know if I can provide any additional information to help.
Relevant log output
Additional information
Here is some sample code to help reproduce the issue;
dockerComposeFile
can be any valid Docker compose file; mine just contained a basic Redis container.The text was updated successfully, but these errors were encountered: