-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Bug]: NullPointerException from ResourceReaper in GenericContainer.stop #11492
Copy link
Copy link
Open
Labels
Description
Module
Core
Testcontainers version
2.0.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
GitHub hosted runnersWhat happened?
java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1125)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1116)
at org.testcontainers.utility.ResourceReaper.stopAndRemoveContainer(ResourceReaper.java:175)
at org.testcontainers.containers.GenericContainer.stop(GenericContainer.java:652)
at io.trino.tests.product.launcher.env.DockerContainer.reset(DockerContainer.java:411)
at io.trino.tests.product.launcher.env.Environment.tryStart(Environment.java:157)
Exact repro steps are unclear.
Based on exceptions logged earlier in the CI run (https://github.com/trinodb/trino/actions/runs/22016571723/job/63619535768?pr=28120) this may be after a failed startup attempt.
Relevant log output
Additional Information
https://github.com/trinodb/trino/actions/runs/22016571723/job/63619535768?pr=28120
Reactions are currently unavailable