[jdk21u-dev] Integrated: 8343191: Cgroup v1 subsystem fails to set subsystem path

Sergey Chernyshev schernyshev at openjdk.org
Wed Oct 8 09:26:20 UTC 2025


On Mon, 29 Sep 2025 19:38:16 GMT, Sergey Chernyshev <schernyshev at openjdk.org> wrote:

> This is a clean backport of JDK-8343191 except for the only difference is in the copyright header in cgroupV1Subsystem_linux.cpp
> 
> JDK-8343191 has immediate follow up fixes:
> 
> 1. JDK-8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing
> 
> The newly added test failed in rootless docker/podman setups
> PR: #2279 
> 
> 2. JDK-8352926: New test TestDockerMemoryMetricsSubgroup.java fails
> 3. JDK-8360533: ContainerRuntimeVersionTestUtils fromVersionString fails with some docker versions
> 
> The test failed in docker versions < 20.10 and podman < 1.5 that don't support `--cgroupns` switch. 8360533 is the direct follow up of 8352926.
> PR: #2280
> 
> 4. 8354475: TestDockerMemoryMetricsSubgroup.java fails with exitValue = 1
> 
> Test failed in rootless docker/podman, similar to 8351382.
> PR: #2282
> 
> The following test:
> test/hotspot/jtreg/containers/docker/TestMemoryWithSubgroups.java
> 
> is failing on newer Linux kernels (6.14) in Ubuntu 24, because 'required' cgroup controllers are not mounted. It is unrelated to this fix. The failure can be fixed separately for newer kernels with JDK-8347811/JDK-8349988 that is currently in the LTS release (25), it should be fine for 21.0.10. The fix works for both Cgroup v1 & v2 hosts.
> 
> There are more test failures in newer kernels in
> 
> test/hotspot/jtreg/containers/
> test/jdk/jdk/internal/platform/
> 
> they are not related to this backport and its follow ups.
> 
> In kernel 6.11 there are 2 failed tests,
> 
> test/jdk/jdk/internal/platform/docker/TestPidsLimit.java
> test/hotspot/jtreg/containers/docker/TestPid.java
> 
> the failures are not related to this backport.

This pull request has now been integrated.

Changeset: 859fcefd
Author:    Sergey Chernyshev <schernyshev at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/859fcefd77df95402bb22975c258eaea450d13c7
Stats:     491 lines in 9 files changed: 449 ins; 3 del; 39 mod

8343191: Cgroup v1 subsystem fails to set subsystem path

Backport-of: de29ef3bf3a029f99f340de9f093cd20544217fd

-------------

PR: https://git.openjdk.org/jdk21u-dev/pull/2278


More information about the jdk-updates-dev mailing list