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

Two container tests fail after JDK-8292984

XMLWordPrintable

    • generic
    • linux

      After JDK-8292984 these two tests fail:

      FAILED: containers/docker/TestJFREvents.java
      FAILED: containers/docker/TestMemoryAwareness.java

      While they are problem-listed they are still useful to run since they cover important aspects of the container detection code. I usually run those for any container change and they rarely don't pass with the issues noted in the problem list bugs.

      TestJFREvents.java fails with:

      [2025-10-08T16:00:03.607560475Z] Waiting for completion finished for process 301743
      Could not parse total physical memory 'null' returning -100
      Debug: Host total memory is -100
      [...]
       stderr: []
       exitValue = 0

      java.lang.RuntimeException: 'hostTotalMemory = -100' missing from stdout/stderr
              at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
              at TestJFREvents.testContainerInfo(TestJFREvents.java:148)
              at TestJFREvents.containerInfoTestCase(TestJFREvents.java:109)
              at TestJFREvents.main(TestJFREvents.java:91)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:565)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'hostTotalMemory = -100' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'hostTotalMemory = -100' missing from stdout/stderr

      containers/docker/TestMemoryAwareness.java fails with:

      openjdk version "26-internal" 2026-03-17
      OpenJDK Runtime Environment (fastdebug build 26-internal-adhoc.sgehwolf.jdk-jdk)
      OpenJDK 64-Bit Server VM (fastdebug build 26-internal-adhoc.sgehwolf.jdk-jdk, mixed mode, sharing)
      ];
       stderr: []
       exitValue = 0

      java.lang.RuntimeException: 'container memory limit (ignored: 668189204480|unlimited: -1), using host value 66818920448' missing from stdout/stderr
              at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:372)
              at TestMemoryAwareness.testContainerMemExceedsPhysical(TestMemoryAwareness.java:143)
              at TestMemoryAwareness.main(TestMemoryAwareness.java:106)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:565)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'container memory limit (ignored: 668189204480|unlimited: -1), using host value 66818920448' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'container memory limit (ignored: 668189204480|unlimited: -1), using host value 66818920448' missing from stdout/stderr

        1. TestJFREvents.jtr
          30 kB
          Severin Gehwolf
        2. TestMemoryAwareness.jtr
          128 kB
          Severin Gehwolf

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

              Created:
              Updated: