You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the TESTCONTAINERS_SESSION_ID_LABEL is missing from the ZeebeVolume labels.
And indeed, if I modify the volume with, they get cleaned up by Ryuk as expected.
Adds the labels required for Ryuk (and other cleanup mechanisms) to pick up
volumes and clean them up, similar to containers and networks.
Closescamunda-community-hub#656
Adds the labels required for Ryuk (and other cleanup mechanisms) to pick up
volumes and clean them up, similar to containers and networks.
Closescamunda-community-hub#656
While debugging some disk usage issues in camunda/camunda#16619, I've noticed thousands of leaked volumes that did not get cleaned up by Ryuk.
The
ZeebeVolume
does apply some labels that are supposed to mark it for Ryuk:zeebe-test-container/core/src/main/java/io/zeebe/containers/ZeebeVolume.java
Lines 164 to 165 in f108854
These default labels look like this:
However, testcontainers-java sends Ryuk the following labels:
https://github.com/testcontainers/testcontainers-java/blob/33c904ed9c23088d725dd0b5f017cdab2384edae/core/src/main/java/org/testcontainers/utility/ResourceReaper.java#L44-L56
As you can see, the
TESTCONTAINERS_SESSION_ID_LABEL
is missing from theZeebeVolume
labels.And indeed, if I modify the volume with, they get cleaned up by Ryuk as expected.
The text was updated successfully, but these errors were encountered: