RFR: 8374364: TestCgroupMetrics.java fails when cpuset unmounted [v6]
SendaoYan
syan at openjdk.org
Tue Feb 3 15:16:40 UTC 2026
> Hi all,
>
> Test jdk/internal/platform/cgroup/TestCgroupMetrics.java report fails when the cpuset unmounted. The details shows in jbs issue. I think it's better to check the 'cpu period' or 'cpuset' available or not before run the releated tests.
>
> Change has been verified locally. Test-fix only, no risk.
SendaoYan has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
- Merge branch 'openjdk:master' into jbs8374364
- Update comment "If cgroups is not configured, the test is skipped." which suggestion from @dholmes-ora
Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
- Update copyright year for test/lib/jdk/test/lib/containers/cgroup/MetricsTesterCgroupV1.java
- Check cpu period and cpuset avaialable before test
- Fix year
- Move DockerTestUtils.checkCanTestDocker() inside MetricsTester
- 8374364: TestCgroupMetrics.java fails when docker service unavailable
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28996/files
- new: https://git.openjdk.org/jdk/pull/28996/files/8e2ee419..109302e5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28996&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28996&range=04-05
Stats: 130803 lines in 3552 files changed: 62581 ins; 31208 del; 37014 mod
Patch: https://git.openjdk.org/jdk/pull/28996.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28996/head:pull/28996
PR: https://git.openjdk.org/jdk/pull/28996
More information about the serviceability-dev
mailing list