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

containers/docker/TestJFREvents.java fails 'hostTotalMemory = -100' missing from stdout/stderr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • None
    • aarch64
    • linux

      This test fails when test docker image is centos:7.6(-Djdk.test.docker.image.name=centos -Djdk.test.docker.image.version=7.6). The test log snippet:

      Full child process STDOUT was saved to docker-stdout-141652.log
      STDERR:
       stdout: [===== EventType: jdk.ContainerConfiguration
      startTime = 824763592
      containerType = cgroupv1
      cpuSlicePeriod = 100000
      cpuQuota = 100000
      cpuShares = -1
      effectiveCpuCount = 1
      memorySoftLimit = -1
      memoryLimit = 209715200
      swapMemoryLimit = 419430400
      hostTotalMemory = 539397394432
      hostTotalSwapMemory = 4294963200
      ===== EventType: jdk.ContainerConfiguration
      startTime = 826359570
      containerType = cgroupv1
      cpuSlicePeriod = 100000
      cpuQuota = 100000
      cpuShares = -1
      effectiveCpuCount = 1
      memorySoftLimit = -1
      memoryLimit = 209715200
      swapMemoryLimit = 419430400
      hostTotalMemory = 539397394432
      hostTotalSwapMemory = 4294963200
      ];
       stderr: [WARNING: IPv4 forwarding is disabled. Networking will not work.
      ]
       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)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: