Integrated: 8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing
Sergey Chernyshev
schernyshev at openjdk.org
Tue Mar 18 09:40:24 UTC 2025
On Fri, 7 Mar 2025 20:14:05 GMT, Sergey Chernyshev <schernyshev at openjdk.org> wrote:
> The new test fails in rootless Docker mode after [JDK-8343191](https://bugs.openjdk.org/browse/JDK-8343191):
>
> containers/docker/TestMemoryWithSubgroups.java
>
> [STDERR]
>
> Resource limits are not supported and ignored on cgroups V1 rootless systems
>
> [STDOUT]
>
> mkdir: cannot create directory '/sys/fs/cgroup/memory/test': Permission denied
> sh: /sys/fs/cgroup/memory/test/memory.limit_in_bytes: No such file or directory
> sh: /sys/fs/cgroup/memory/test/cgroup.procs: No such file or directory
>
> The test TestMemoryWithSubgroups.java uses `--privileged` mode to modify process' cgroup, that has no effect in rootless mode. The test has to be skiped.
>
> The fix is to query `info -f {{println .SecurityOptions}}` and check whether it has `name=rootless` in the output.
This pull request has now been integrated.
Changeset: 46b3d1d8
Author: Sergey Chernyshev <schernyshev at openjdk.org>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/46b3d1d8cfd03e01d993be19d725cdbcafef7865
Stats: 17 lines in 1 file changed: 17 ins; 0 del; 0 mod
8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing
Reviewed-by: sgehwolf, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/23948
More information about the hotspot-runtime-dev
mailing list