testcontainers / testcontainers/testcontainers-java

Error waiting for log message with Docker 20.10.1

Open
#3,613 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Our E2E test suite uses Testcontainers to run our microservices and their dependencies in containers for the duration of our tests. All of the tests were passing until we updated our build nodes to Docker 20.10.1, at which point we started repeatedly getting STDOUT: $Error grabbing logs: unexpected EOF errors, and our Wait.forLogMessage calls started timing out.

Note however, that this issue seems sporadic as about 1 out of 10 builds still passes. After we reverted to Docker 19.03.14 the issue went away. We're using the latest version of Testcontainers (1.15.1 at the time of reporting the issue).

It's unclear to me if this is a Docker/Moby problem or a Testcontainers problem - I figured I'd report it here first to see if anyone else experienced similar issues, as I couldn't find related bug reports on Docker's issue tracker.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the E2E test suite and the Wait.forLogMessage calls, then reproduce the intermittent STDOUT unexpected EOF failure on Docker 20.10.1 and Docker 19.03.14. No specific file or test is named in the issue; done means identifying whether the failure belongs in Testcontainers or Docker and documenting a verified regression result.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
devops, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.