-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus fails to clean test containers on Podman 4.5.1 #33985
Comments
It does look like a Podman issue? |
@gsmet |
@maxandersen pls check this, podman related. When using just JUnit and TestContainers, no leftover container running. https://github.com/fedinskiy/reproducer/blob/podman-451/src/test/java/io/quarkus/qe/JunitTest.java |
Using podman in both cases? |
yes |
what do you have in if you see testcontainers.reuse.enable=true please try testcontainers.reuse.enable=false and run again. if still see issue or that property gets changed we need to figure out why that is happening. |
I tried switching
[1]
[2]
|
@n1hility could you take a look? |
@maxandersen @n1hility could you take a look? |
It seems, that Podman 4.6.1 is not affected by this UPD: on Podman 4.6.1 it doesn't block tests anymore, but containers are still not being stopped. This may cause temporary data to be persisted between runs |
sure will take a look |
From what I can see, the issue is solved in recent Podman as they reenabled the test there: quarkus-qe/quarkus-test-suite#1380 . |
Describe the bug
I have an application, which uses Mariadb[1] database and depends on Quarkus to deploy the image in DevUI/tests. After I updated podman on my OS from 4.5.0 to 4.5.1, I noticed, that tests can not be run twice in a row. Investigation showed, that after the first run, the container for database stays running.
When Quarkus is not involved (Junit+testcontainers+same DB) everything works as expected.
[1] I was able to reproduce the bug with other DBs as well
Expected behavior
Any started containers should be stopped, same as for Docker and Podman 4.5.0
Actual behavior
Mariadb containers stays in running state
How to Reproduce?
git clone [email protected]:fedinskiy/reproducer.git -b podman-451
mvn clean verify -Dtest=QuarkusTest#testHelloEndpoint
mvn clean verify -Dtest=QuarkusTest#testHelloEndpoint
. Test hangs.For comparison, non-Quarkus tests for the same DB work fine:
mvn clean verify -Dtest=JunitTest
3.
mvn clean verify -Dtest=JunitTest
succeedsOutput of
uname -a
orver
4.18.0-425.19.2.el8_7.x86_64
Output of
java -version
17.0.5, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.0.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
See #33896 for similar problem
The text was updated successfully, but these errors were encountered: