Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206456

[TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mems

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bobv Bob Vandette
                  Reporter:
                  mbaesken Matthias Baesken
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: