TEST: jdk/internal/platform/docker/TestSystemMetrics.java TEST JDK: /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk ACTION: build -- Passed. Build successful REASON: Named class compiled on demand TIME: 1.516 seconds messages: command: build TestSystemMetrics reason: Named class compiled on demand started: Sun Nov 03 17:33:57 CST 2024 Test directory: compile: TestSystemMetrics finished: Sun Nov 03 17:33:59 CST 2024 elapsed time (seconds): 1.516 ACTION: compile -- Passed. Compilation successful REASON: .class file out of date or does not exist TIME: 1.513 seconds messages: command: compile /tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker/TestSystemMetrics.java reason: .class file out of date or does not exist started: Sun Nov 03 17:33:57 CST 2024 Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.platform=ALL-UNNAMED Mode: othervm finished: Sun Nov 03 17:33:59 CST 2024 elapsed time (seconds): 1.513 configuration: javac compilation environment add modules: java.base add exports: java.base/jdk.internal.platform ALL-UNNAMED source path: /tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker /tmp/tone/run/jtreg/jdk-repo/test/lib class path: /tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker /tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d /tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/test/lib rerun: cd /tmp/tone/run/jtreg/jt-work/docker-jdk/jdk/internal/platform/docker/TestSystemMetrics && \ DISPLAY=:7 \ HOME=/root \ JTREG_VERSION=jtreg-7.4.1 \ LANG=C \ LC_CTYPE=C.UTF-8 \ LD_LIBRARY_PATH=/tmp/tone/run/jtreg/jdk-repo/build/tools/lib \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images \ /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk/bin/javac \ -J-ea \ -J-esa \ -J-Dtest.vm.opts='-ea -esa' \ -J-Dtest.tool.vm.opts='-J-ea -J-esa' \ -J-Dtest.compiler.opts= \ -J-Dtest.java.opts= \ -J-Dtest.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -J-Dcompile.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -J-Dtest.timeout.factor=4.0 \ -J-Dtest.nativepath=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ -J-Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \ -J-Dtest.name=jdk/internal/platform/docker/TestSystemMetrics.java \ -J-Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker/TestSystemMetrics.java \ -J-Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker \ -J-Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker:/tmp/tone/run/jtreg/jdk-repo/test/lib \ -J-Dtest.classes=/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d \ -J-Dtest.class.path=/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d:/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/test/lib \ -J-Dtest.modules=java.base/jdk.internal.platform \ @/tmp/tone/run/jtreg/jt-work/docker-jdk/jdk/internal/platform/docker/TestSystemMetrics.d/compile.0.jta STDOUT: STDERR: Note: /tmp/tone/run/jtreg/jdk-repo/test/lib/jdk/test/lib/Asserts.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1] REASON: User specified action: run main TestSystemMetrics TIME: 70.056 seconds messages: command: main TestSystemMetrics reason: User specified action: run main TestSystemMetrics started: Sun Nov 03 17:33:59 CST 2024 Mode: othervm Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.platform=ALL-UNNAMED finished: Sun Nov 03 17:35:09 CST 2024 elapsed time (seconds): 70.056 configuration: Boot Layer add modules: java.base add exports: java.base/jdk.internal.platform ALL-UNNAMED STDOUT: [COMMAND] docker ps [2024-11-03T09:33:59.574771975Z] Gathering output for process 1516920 [ELAPSED: 32 ms] [STDERR] [STDOUT] CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 062f54929611 jdk-build:11 "bash" About an hour ago Up About an hour jdk-build Full child process STDOUT was saved to docker-stdout-1516920.log [2024-11-03T09:33:59.600363995Z] Waiting for completion for process 1516920 [2024-11-03T09:33:59.600476182Z] Waiting for completion finished for process 1516920 [COMMAND] docker build --no-cache --tag jdk-internal:test-jdk-internal-platform-docker-TestSystemMetrics-metrics jdk-internal-test-jdk-internal-platform-docker-TestSystemMetrics-metrics [2024-11-03T09:34:00.272087919Z] Gathering output for process 1517350 [ELAPSED: 68353 ms] [STDERR] #0 building with "default" instance using docker driver #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 108B done #1 DONE 0.0s #2 [internal] load .dockerignore #2 transferring context: 2B done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/ubuntu:latest #3 DONE 16.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 #4 resolve docker.io/library/ubuntu:latest@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 #4 resolve docker.io/library/ubuntu:latest@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 0.6s done #4 sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 1.42kB / 1.42kB done #4 sha256:7cc0576c7c0ec2384de5cbf245f41567e922aab1b075f3e8ad565f508032df17 529B / 529B done #4 sha256:ba6acccedd2923aee4c2acc6a23780b14ed4b8a5fa4e14e252a23b846df9b6c1 1.46kB / 1.46kB done #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 0B / 28.57MB 0.2s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 1.79MB / 28.57MB 0.4s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 13.63MB / 28.57MB 0.5s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 15.73MB / 28.57MB 0.7s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 19.92MB / 28.57MB 1.0s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 22.02MB / 28.57MB 1.2s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 24.12MB / 28.57MB 1.4s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 26.21MB / 28.57MB 1.5s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 28.57MB / 28.57MB 1.7s #4 sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 28.57MB / 28.57MB 1.8s done #4 extracting sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 #4 extracting sha256:7b1a6ab2e44dbac178598dabe7cff59bd67233dba0b27e4fbd1f9d4b3c877a54 1.0s done #4 DONE 4.1s #5 [internal] load build context #5 transferring context: 1.02GB 3.5s #5 transferring context: 1.14GB 4.0s done #5 DONE 4.8s #6 exporting to image #6 exporting layers #6 exporting layers 1.7s done #6 writing image sha256:a66b5cc710af84f5fe71b59c26f8ea22dd958bda8ab2ffe134d11edb381083ba done #6 naming to docker.io/library/jdk-internal:test-jdk-internal-platform-docker-TestSystemMetrics-metrics done #6 DONE 1.8s [STDOUT] Full child process STDOUT was saved to docker-stdout-1517350.log [2024-11-03T09:35:08.625223533Z] Waiting for completion for process 1517350 [2024-11-03T09:35:08.625295698Z] Waiting for completion finished for process 1517350 ========== NEW TEST CASE: Test SystemMetrics [COMMAND] docker run --tty=true --rm --volume /tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d:/test-classes/ --memory=256m jdk-internal:test-jdk-internal-platform-docker-TestSystemMetrics-metrics /jdk/bin/java -XX:+ErrorFileToStderr -cp /test-classes/ --add-exports java.base/jdk.internal.platform=ALL-UNNAMED -ea -esa jdk.test.lib.containers.cgroup.MetricsTester -incontainer [2024-11-03T09:35:08.627198464Z] Gathering output for process 1518344 [ELAPSED: 868 ms] [STDERR] [STDOUT] inContainer = true Exception in thread "main" java.lang.RuntimeException: Test failed for - unified:io.stat->rios/wios: , expected [1], got [2] at jdk.test.lib.containers.cgroup.CgroupMetricsTester.fail(CgroupMetricsTester.java:71) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.fail(MetricsTesterCgroupV2.java:147) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.testIOStat(MetricsTesterCgroupV2.java:451) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.testMisc(MetricsTesterCgroupV2.java:443) at jdk.test.lib.containers.cgroup.MetricsTester.testAll(MetricsTester.java:71) at jdk.test.lib.containers.cgroup.MetricsTester.main(MetricsTester.java:99) Full child process STDOUT was saved to docker-stdout-1518344.log [2024-11-03T09:35:09.495507278Z] Waiting for completion for process 1518344 [2024-11-03T09:35:09.495615789Z] Waiting for completion finished for process 1518344 [COMMAND] docker rmi --force jdk-internal:test-jdk-internal-platform-docker-TestSystemMetrics-metrics [2024-11-03T09:35:09.501044626Z] Gathering output for process 1519594 [ELAPSED: 12 ms] [STDERR] [STDOUT] Untagged: jdk-internal:test-jdk-internal-platform-docker-TestSystemMetrics-metrics Full child process STDOUT was saved to docker-stdout-1519594.log STDERR: stdout: [inContainer = true Exception in thread "main" java.lang.RuntimeException: Test failed for - unified:io.stat->rios/wios: , expected [1], got [2] at jdk.test.lib.containers.cgroup.CgroupMetricsTester.fail(CgroupMetricsTester.java:71) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.fail(MetricsTesterCgroupV2.java:147) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.testIOStat(MetricsTesterCgroupV2.java:451) at jdk.test.lib.containers.cgroup.MetricsTesterCgroupV2.testMisc(MetricsTesterCgroupV2.java:443) at jdk.test.lib.containers.cgroup.MetricsTester.testAll(MetricsTester.java:71) at jdk.test.lib.containers.cgroup.MetricsTester.main(MetricsTester.java:99) ]; stderr: [] exitValue = 1 java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1] at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:522) at TestSystemMetrics.main(TestSystemMetrics.java:59) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:573) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1576) JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1] JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1] rerun: cd /tmp/tone/run/jtreg/jt-work/docker-jdk/jdk/internal/platform/docker/TestSystemMetrics && \ DISPLAY=:7 \ HOME=/root \ JTREG_VERSION=jtreg-7.4.1 \ LANG=C \ LC_CTYPE=C.UTF-8 \ LD_LIBRARY_PATH=/tmp/tone/run/jtreg/jdk-repo/build/tools/lib \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images \ CLASSPATH=/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d:/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker:/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/test/lib:/tmp/tone/run/jtreg/jdk-repo/test/lib:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \ /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk/bin/java \ -Dtest.vm.opts='-ea -esa' \ -Dtest.tool.vm.opts='-J-ea -J-esa' \ -Dtest.compiler.opts= \ -Dtest.java.opts= \ -Dtest.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -Dcompile.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -Dtest.timeout.factor=4.0 \ -Dtest.nativepath=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \ -Dtest.name=jdk/internal/platform/docker/TestSystemMetrics.java \ -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker/TestSystemMetrics.java \ -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker \ -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/internal/platform/docker:/tmp/tone/run/jtreg/jdk-repo/test/lib \ -Dtest.classes=/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d \ -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/jdk/internal/platform/docker/TestSystemMetrics.d:/tmp/tone/run/jtreg/jt-work/docker-jdk/classes/7/test/lib \ -Dtest.modules=java.base/jdk.internal.platform \ --add-modules java.base \ --add-exports java.base/jdk.internal.platform=ALL-UNNAMED \ -ea \ -esa \ -Djava.library.path=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/docker-jdk/jdk/internal/platform/docker/TestSystemMetrics.d/main.1.jta TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]