-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Docker connection not closed #321
Comments
Hi @Eun, thanks for reporting this issue. Would you like to send a PR with this implementation? We'll be fast to review it. If not, I'll find time to implement it and ask for your review when I have bandwidth to do it. Thanks in advance!! |
Hi @Eun I'm not able to reproduce this bug yet, using the same repro code shared here. Could you please double check if it's still happening on your side? 🙏 |
OTOH let me rephrase it myself: do you think all the usages of the |
I cannot reproduce either! Could be related to new versions of goleak or go or whatever. However I can remember the case: In However, this instance will never be closed. |
Would you mind elaborating a PR? Otherwise, we can prioritize it for our upcoming iterations Cheers! |
I am kinda busy at this moment, so wont make it happen. |
See also related #1357 |
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to testcontainers#1357 therefore this change does not add leak detector, only fixes. Updates testcontainers#321
Fixes various goroutine leaks by moving around and adding missing Close calls. Leaks were detected by github.com/AlexanderYastrebov/noleak by adding ```go // go get github.com/AlexanderYastrebov/noleak@latest // cat main_test.go package testcontainers import ( "os" "testing" "github.com/AlexanderYastrebov/noleak" ) func TestMain(m *testing.M) { os.Exit(noleak.CheckMain(m)) } ``` Not all leaks could be fixed e.g. due to #1357 therefore this change does not add leak detector, only fixes. Updates #321
Describe the bug
The
ProviderType.GetProvider()
function creates a docker client, but never closes it, which leads to a leaking connection.Similar to #319
To Reproduce
Use following test:
Expected behavior
A successful test
docker info
output of the command:
Additional context
It might be necessary to adjust
GenericProvider
to include aClose()
function that closes the used provider.The text was updated successfully, but these errors were encountered: