-
Bug
-
Resolution: Fixed
-
P3
-
11
-
b24
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207901 | 12 | Bob Vandette | P3 | Resolved | Fixed | b04 |
JDK-8208008 | 11.0.2 | Bob Vandette | P3 | Resolved | Fixed | b01 |
JDK-8208050 | 11.0.1 | Bob Vandette | P3 | Resolved | Fixed | b03 |
JDK-8295801 | openjdk8u362 | Jonathan Dowland | P3 | Resolved | Fixed | b01 |
Currently the jdk jtreg tests
jdk/internal/platform/docker/TestDockerCpuMetrics.java
jdk/internal/platform/docker/TestSystemMetrics.java
fail on Linux systems without
/sys/fs/cgroup/cpuset/cpuset.effective_cpus
and
/sys/fs/cgroup/cpuset/cpuset.effective_mems
Such systems exist , see also https://github.com/lxc/lxd/issues/1929 .
We see the error on a Linux s390x SLES12.1 , kernel is 3.12.49-11-default .
Error output :
jdk/internal/platform/docker/TestDockerCpuMetrics.java
-------------------------------------------------------------
stdout: [[cpusets, 0]
Exception in thread "main" java.lang.RuntimeException: Effective Cpusets not equal, expected : [0], got : []
at MetricsCpuTester.testCpuSets(MetricsCpuTester.java:101)
at MetricsCpuTester.main(MetricsCpuTester.java:34)
];
stderr: []
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:396)
at TestDockerCpuMetrics.testCpuSet(TestDockerCpuMetrics.java:118)
at TestDockerCpuMetrics.main(TestDockerCpuMetrics.java:60)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:834)
jdk/internal/platform/docker/TestSystemMetrics.java
--------------------------------------------------------
Unale to open : /sys/fs/cgroup/cpuset/cpuset.effective_cpus
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at jdk.test.lib.containers.cgroup.MetricsTester.lambda$testCpuSets$7(MetricsTester.java:422)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517)
at jdk.test.lib.containers.cgroup.MetricsTester.testCpuSets(MetricsTester.java:444)
at jdk.test.lib.containers.cgroup.MetricsTester.main(MetricsTester.java:582)
jdk/internal/platform/docker/TestDockerCpuMetrics.java
jdk/internal/platform/docker/TestSystemMetrics.java
fail on Linux systems without
/sys/fs/cgroup/cpuset/cpuset.effective_cpus
and
/sys/fs/cgroup/cpuset/cpuset.effective_mems
Such systems exist , see also https://github.com/lxc/lxd/issues/1929 .
We see the error on a Linux s390x SLES12.1 , kernel is 3.12.49-11-default .
Error output :
jdk/internal/platform/docker/TestDockerCpuMetrics.java
-------------------------------------------------------------
stdout: [[cpusets, 0]
Exception in thread "main" java.lang.RuntimeException: Effective Cpusets not equal, expected : [0], got : []
at MetricsCpuTester.testCpuSets(MetricsCpuTester.java:101)
at MetricsCpuTester.main(MetricsCpuTester.java:34)
];
stderr: []
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:396)
at TestDockerCpuMetrics.testCpuSet(TestDockerCpuMetrics.java:118)
at TestDockerCpuMetrics.main(TestDockerCpuMetrics.java:60)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:834)
jdk/internal/platform/docker/TestSystemMetrics.java
--------------------------------------------------------
Unale to open : /sys/fs/cgroup/cpuset/cpuset.effective_cpus
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at jdk.test.lib.containers.cgroup.MetricsTester.lambda$testCpuSets$7(MetricsTester.java:422)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517)
at jdk.test.lib.containers.cgroup.MetricsTester.testCpuSets(MetricsTester.java:444)
at jdk.test.lib.containers.cgroup.MetricsTester.main(MetricsTester.java:582)
- backported by
-
JDK-8207901 [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mems
- Resolved
-
JDK-8208008 [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mems
- Resolved
-
JDK-8208050 [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mems
- Resolved
-
JDK-8295801 [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mems
- Resolved
(1 links to)