RFR: 8262953: [TESTBUG] Test /runtime/containers/cgroup/PlainRead.java fails if CPU quoata is not enabled
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Fri Apr 16 14:18:35 UTC 2021
On Fri, 16 Apr 2021 13:13:31 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> > I can see config file in Fedora, Alpine, and Ubuntu. In case of Fedora, it is provided by kernel-core package. so I guess most of Linux distros are providing it. If so, I think we can throw SkipException when the test cannot find it.
>
> Right. Note, however, `kernel-core` packages usually aren't installed in containers. So on a system like that (Raspberry Pi) and inside a container, the test would then be meaningless.
PlainTest.java does not require to run inside the container, it requires cgroups only. It does not use classes in `jdk.test.lib.containers.docker` like DockerBasicTest.java.
The problem in PlainTest.java suffers only when `wb.isContainerized()` returns `true` - it does not indicates the process is inside container as we've discussed in #3280 .
-------------
PR: https://git.openjdk.java.net/jdk/pull/3206
More information about the hotspot-runtime-dev
mailing list