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

[TESTBUG] Some cgroup tests are failing after JDK-8231111

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b14
    • OS:
      linux

      Description

      On some Linux architectures, certain cgroupv1 features are not available. After the refactoring of the Metrics interface test updates were missed to account for certain cgroup files not being present.

      Failures observed by SAP in their testing were:

      Unable to open : /sys/fs/cgroup/memory/memory.kmem.failcnt
      java.lang.RuntimeException: Test failed for - memory:memory.kmem.failcnt, expected [-1], got [0]
               at jdk.test.lib.containers.cgroup.CgroupMetricsTester.fail(CgroupMetricsTester.java:70)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.fail(MetricsTesterCgroupV1.java:187)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.testMemorySubsystem(MetricsTesterCgroupV1.java:239)
               at jdk.test.lib.containers.cgroup.MetricsTester.testAll(MetricsTester.java:61)
               at TestCgroupMetrics.main(TestCgroupMetrics.java:46)
               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:564)
               at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
               at java.base/java.lang.Thread.run(Thread.java:832)

      Unable to open : /sys/fs/cgroup/memory/system.slice/ssh.service/memory.memsw.failcnt
      java.lang.RuntimeException: Test failed for - memory:memory.memsw.failcnt, expected [-1], got [0]
               at jdk.test.lib.containers.cgroup.CgroupMetricsTester.fail(CgroupMetricsTester.java:70)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.fail(MetricsTesterCgroupV1.java:187)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.testMemorySubsystem(MetricsTesterCgroupV1.java:291)
               at jdk.test.lib.containers.cgroup.MetricsTester.testAll(MetricsTester.java:61)
               at TestCgroupMetrics.main(TestCgroupMetrics.java:46)
               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:564)
               at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
               at java.base/java.lang.Thread.run(Thread.java:832)

      Unable to open : /sys/fs/cgroup/memory/memory.memsw.failcnt
      java.lang.RuntimeException: Test failed for - memory:memory.memsw.failcnt, expected [-1], got [0]
               at jdk.test.lib.containers.cgroup.CgroupMetricsTester.fail(CgroupMetricsTester.java:70)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.fail(MetricsTesterCgroupV1.java:187)
               at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV1.testMemorySubsystem(MetricsTesterCgroupV1.java:291)
               at jdk.test.lib.containers.cgroup.MetricsTester.testAll(MetricsTester.java:61)
               at TestCgroupMetrics.main(TestCgroupMetrics.java:46)
               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:564)
               at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
               at java.base/java.lang.Thread.run(Thread.java:832)
       
      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed for - memory:memory.memsw.failcnt, expected [-1], got [0]
      JavaTest Message: shutting down test
       
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed for - memory:memory.memsw.failcnt, expected [-1], got [0]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgehwolf Severin Gehwolf
                Reporter:
                sgehwolf Severin Gehwolf
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: