Skip to content
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

Fix duct-tape:1.0.8 Zombie thread #9241

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dadoonet
Copy link
Contributor

This is a naive implementation for the bug described in #9227.

I basically moved the code from https://github.com/rnorth/duct-tape/ to org.testcontainers.utility.ducttape TC new package. And I removed the dependency on the duct-tape jar.
Then I added a method Timeouts.shutdown() which basically calls the shutdown() method on the Thread.
Finally, when we stop a container, I'm calling this Timeouts.shutdown().

This should close the remaining thread.

Let me know what you think and if I should continue on this path or not.

Thanks!

1st step: move code from the archived repository

Related to testcontainers#9227.
2nd step: call shutdown() when stopping the container

Related to testcontainers#9227.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant