RFR: JDK-8284977: MetricsTesterCgroupV2.getLongValueEntryFromFile fails when named value doesn't exist

Matthias Baesken mbaesken at openjdk.java.net
Tue Jun 14 11:34:45 UTC 2022


When running test/jdk/jdk/internal/platform/cgroup/TestCgroupMetrics.java on ubuntu 21.10 or 22 , this test looks for a named value "nr_periods" in the file /sys/fs/cgroup/..../cpu.stat . However this metric is not always present, which leads to an AIOOB exception.

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

Commit messages:
 - JDK-8284977

Changes: https://git.openjdk.org/jdk/pull/9153/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=9153&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8284977
  Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/9153.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9153/head:pull/9153

PR: https://git.openjdk.org/jdk/pull/9153


More information about the hotspot-runtime-dev mailing list