Testcontainers-java: A connection to http://docker.socket/ was leaked

Created on 22 Dec 2019  路  14Comments  路  Source: testcontainers/testcontainers-java

Hi guys, just noticed that the following warning happens from time to time (not easy to reproduce):

12:08:27.540 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Start VNC container...
12:08:32.120 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Starting test [deleteChildren]
Dec 22, 2019 12:08:52 PM org.testcontainers.shaded.okhttp3.internal.platform.Platform log
WARNING: A connection to http://docker.socket/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
12:08:52.845 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Stopping test [deleteChildren]

Anything that can be done?

I'll try to reproduce with the log level set to FINE.

stale

Most helpful comment

@bsideup Regretfully also seeing this on 1.15.1 sometimes.

All 14 comments

Hi @vmassol,

Thanks for the report!
There was an issue in docker-java that caused some InputStreams to leak:
https://github.com/docker-java/docker-java/pull/1290

We're working on releasing docker-java 3.2.0 (that includes the fix) and will upgrade it in Testcontainers shortly after.

Excellent! Thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

I guess this should stay open... Unless the last version of TC (1.13.0) includes docker-java 3.2.0 already?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@bsideup is actively working on this - not stale!

This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.

@bsideup any updates here?

Thanks
Nikolay

@nachevn good question! Any updates? Is it still reproducible with the latest Testcontainers that depends on docker-java 3.2.x? :)

@bsideup yes, indeed it is a good question. It occurs but not every time which makes it (unfortunately) not reproducible. Just for information we are using testcontainers version 1.15.0-rc1

@bsideup I'm getting this on 1.15.0

@ravenblackdusk please try 1.15.1 then :)

@bsideup I'm still getting this with 1.15.1

@bsideup Regretfully also seeing this on 1.15.1 sometimes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lovepoem picture lovepoem  路  3Comments

naderghanbari picture naderghanbari  路  3Comments

micheal-swiggs picture micheal-swiggs  路  4Comments

vmassol picture vmassol  路  3Comments

chomhanks picture chomhanks  路  3Comments