RFR: 8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing [v4]
Sergey Chernyshev
schernyshev at openjdk.org
Mon Mar 17 16:00:47 UTC 2025
> 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.
Sergey Chernyshev has updated the pull request incrementally with one additional commit since the last revision:
added a comment
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23948/files
- new: https://git.openjdk.org/jdk/pull/23948/files/979fa75a..39657218
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23948&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23948&range=02-03
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/23948.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23948/head:pull/23948
PR: https://git.openjdk.org/jdk/pull/23948
More information about the hotspot-runtime-dev
mailing list