JDK-8333200 : Test containers/docker/TestPids.java fails Limit value -1 is not accepted as unlimited
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2024-05-29
  • Updated: 2024-06-21
  • Resolved: 2024-05-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b26Fixed
Related Reports
Relates :  
Description
Maybe fails after JDK-8302744

jtreg -va -nr -w tmp test/hotspot/jtreg/containers/docker/TestPids.java

test result snippet:
docker run --tty=true --rm --volume /var/tmp/tone/run/jtreg/jt-work-docker/hotspot_jtreg/classes/1/containers/docker/TestPids.d:/test-classes/ --pids-limit=-1 jdk-internal:test-containers-docker-TestPids-pids /jdk/bin/java -XX:+ErrorFileToStderr -Xlog:os+container=trace -cp /test-classes/ -Xbootclasspath/a:/test-classes/whitebox.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -Xmixed -ea -esa PrintContainerInfo 


DEBUG: line = [0.026s][trace][os,container] Maximum number of tasks is: -1
DEBUG: parts.length = 2

STDERR:
java.lang.RuntimeException: Limit value -1 is not accepted as unlimited, log line was [0.026s][trace][os,container] Maximum number of tasks is: -1
	at TestPids.checkResult(TestPids.java:126)
	at TestPids.testPids(TestPids.java:154)
	at TestPids.testPids(TestPids.java:77)
	at TestPids.main(TestPids.java:64)
Comments
The fix for this bug is integrated in jdk-23+26-2132.
31-05-2024

Changeset: 7ab74c5f Author: SendaoYan <syan@openjdk.org> Committer: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2024-05-31 10:13:57 +0000 URL: https://git.openjdk.org/jdk/commit/7ab74c5f268dac82bbd36355acf8e4f3d357134c
31-05-2024

This test has failed in 5 Tier5 build-IDs in a row. It looks like a regression caused by JDK-8302744.
30-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19460 Date: 2024-05-29 15:49:15 +0000
29-05-2024