-
Bug
-
Resolution: Unresolved
-
P4
-
17, 21, 22, 24
-
linux_ubuntu
The test jdk/internal/platform/docker/TestPidsLimit.java intermittently fails on Ubuntu 22.04:
====================8<--------------------
==========
NEW TEST CASE: testPidsLimit (limit: Unlimited)
[COMMAND]
docker run --tty=true --rm --pids-limit=-1 jdk-internal:test-pids /jdk/bin/java -XshowSettings:system -Djbr.catch.SIGABRT=true -version
[2023-07-05T21:50:05.535830264Z] Gathering output for process 5686
[ELAPSED: 2 ms]
[STDERR]
[STDOUT]
Operating System Metrics:
Provider: cgroupv2
Effective CPU Count: 4
CPU Period: 100000us
CPU Quota: -1
CPU Shares: -1
List of Processors: N/A
List of Effective Processors, 4 total:
0 1 2 3
List of Memory Nodes: N/A
List of Available Memory Nodes, 1 total:
0
Memory Limit: Unlimited
Memory Soft Limit: 0.00K
Memory & Swap Limit: Unlimited
Maximum Processes Limit: 9098
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment JBR-17.0.7+0-21-nomod (build 17.0.7+0-b21)
OpenJDK 64-Bit Server VM JBR-17.0.7+0-21-nomod (build 17.0.7+0-b21, mixed mode)
Child process STDOUT is trimmed to 100 lines
Full child process STDOUT was saved to docker-stdout-5686.log
[2023-07-05T21:50:06.110130743Z] Waiting for completion for process 5686
[2023-07-05T21:50:06.110237816Z] Waiting for completion finished for process 5686
DEBUG: line = Maximum Processes Limit: 9098
DEBUG: parts.length = 2
[COMMAND]
docker rmi --force jdk-internal:test-pids
[2023-07-05T21:50:06.115222294Z] Gathering output for process 5896
[ELAPSED: 1 ms]
[STDERR]
[STDOUT]
Untagged: jdk-internal:test-pids
Deleted: sha256:dd6e6776f85a1ac0d99b85d91c87522357ca22fc106ea35c9da2a0cf4d294a78
Deleted: sha256:1bc6c841dbe0f33af8763310873ba476192cc48e0edd9a09efa9d25b490a5118
Deleted: sha256:4757c8e65237742c37ec9db8d74c7991fcaf6d0cce9bfdb084fd4dd2df7156b3
Deleted: sha256:11d9df186cd7e0cf0e8cf5d61652b884b81f0a7c43cf40a2f03e9e087e752cd9
Child process STDOUT is trimmed to 100 lines
Full child process STDOUT was saved to docker-stdout-5896.log
----------System.err:(15/1126)----------
java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
at TestPidsLimit.checkResult(TestPidsLimit.java:95)
at TestPidsLimit.testPidsLimit(TestPidsLimit.java:129)
at TestPidsLimit.main(TestPidsLimit.java:60)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
====================8<--------------------
The failure was observed on Ubuntu 22.04 on JDK17, 21, 22
The test stably passes on other OS's including Ubuntu 18.04, 20.04
Reproducibility: ~50%
Steps to reproduce:
jtreg -v -testjdk:$JAVA_HOME test/jdk/jdk/internal/platform/docker/TestPidsLimit.java
====================8<--------------------
==========
NEW TEST CASE: testPidsLimit (limit: Unlimited)
[COMMAND]
docker run --tty=true --rm --pids-limit=-1 jdk-internal:test-pids /jdk/bin/java -XshowSettings:system -Djbr.catch.SIGABRT=true -version
[2023-07-05T21:50:05.535830264Z] Gathering output for process 5686
[ELAPSED: 2 ms]
[STDERR]
[STDOUT]
Operating System Metrics:
Provider: cgroupv2
Effective CPU Count: 4
CPU Period: 100000us
CPU Quota: -1
CPU Shares: -1
List of Processors: N/A
List of Effective Processors, 4 total:
0 1 2 3
List of Memory Nodes: N/A
List of Available Memory Nodes, 1 total:
0
Memory Limit: Unlimited
Memory Soft Limit: 0.00K
Memory & Swap Limit: Unlimited
Maximum Processes Limit: 9098
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment JBR-17.0.7+0-21-nomod (build 17.0.7+0-b21)
OpenJDK 64-Bit Server VM JBR-17.0.7+0-21-nomod (build 17.0.7+0-b21, mixed mode)
Child process STDOUT is trimmed to 100 lines
Full child process STDOUT was saved to docker-stdout-5686.log
[2023-07-05T21:50:06.110130743Z] Waiting for completion for process 5686
[2023-07-05T21:50:06.110237816Z] Waiting for completion finished for process 5686
DEBUG: line = Maximum Processes Limit: 9098
DEBUG: parts.length = 2
[COMMAND]
docker rmi --force jdk-internal:test-pids
[2023-07-05T21:50:06.115222294Z] Gathering output for process 5896
[ELAPSED: 1 ms]
[STDERR]
[STDOUT]
Untagged: jdk-internal:test-pids
Deleted: sha256:dd6e6776f85a1ac0d99b85d91c87522357ca22fc106ea35c9da2a0cf4d294a78
Deleted: sha256:1bc6c841dbe0f33af8763310873ba476192cc48e0edd9a09efa9d25b490a5118
Deleted: sha256:4757c8e65237742c37ec9db8d74c7991fcaf6d0cce9bfdb084fd4dd2df7156b3
Deleted: sha256:11d9df186cd7e0cf0e8cf5d61652b884b81f0a7c43cf40a2f03e9e087e752cd9
Child process STDOUT is trimmed to 100 lines
Full child process STDOUT was saved to docker-stdout-5896.log
----------System.err:(15/1126)----------
java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
at TestPidsLimit.checkResult(TestPidsLimit.java:95)
at TestPidsLimit.testPidsLimit(TestPidsLimit.java:129)
at TestPidsLimit.main(TestPidsLimit.java:60)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Limit value 9098 is not accepted as unlimited, log line was Maximum Processes Limit: 9098
====================8<--------------------
The failure was observed on Ubuntu 22.04 on JDK17, 21, 22
The test stably passes on other OS's including Ubuntu 18.04, 20.04
Reproducibility: ~50%
Steps to reproduce:
jtreg -v -testjdk:$JAVA_HOME test/jdk/jdk/internal/platform/docker/TestPidsLimit.java