RFR: 8374364: TestCgroupMetrics.java fails when docker service unavailable
Jie Fu
jiefu at openjdk.org
Fri Dec 26 03:05:58 UTC 2025
On Fri, 26 Dec 2025 02:17:10 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> Test jdk/internal/platform/cgroup/TestCgroupMetrics.java report fails when the docker service is unavailable. The details shows in jbs issue. I think it's better to call `DockerTestUtils.checkCanTestDocker()` before run this test.
>
> Change has been verified locally. Test-fix only, no risk.
So `MetricsTester.main(args)` requires the docker service, right?
Maybe it would be better to add this check in a place like`MetricsTester`, where it requires docker service directly.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28996#issuecomment-3691978718
More information about the core-libs-dev
mailing list