JDK-8356187 : TestJcmd.java may incorrectly parse podman version
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 11,17,21,24,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-05-05
  • Updated: 2025-05-09
  • Resolved: 2025-05-07
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 25
25 b22Fixed
Related Reports
Relates :  
Description
There are more variants of "podman version string" than we initially thought.

For example, TestJcmd.java fail to parse "podman version 4.9.4-rhel".

This leads to the test being skipped.

```
podman --version returning: podman version 4.9.4-rhel
Failed to parse podman version: podman version 4.9.4-rhel
----------System.err:(12/725)----------
jtreg.SkippedException: Podman version too old for this test. Expected >= 3.3.1
	at TestJcmd.main(TestJcmd.java:68)
	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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:842)
```
Comments
No. It's a test-fix, not critical.
09-05-2025

We are past RDP2 for 24.0.2. If this issue is critical, please follow the critical request process detailed at https://wiki.openjdk.org/display/JDKUpdates/JDK+24u
08-05-2025

please approve backport, as the issue affects older JDKs as well.
07-05-2025

Changeset: 328715d8 Branch: master Author: Ivan Bereziuk <ivan.bereziuk@oracle.com> Committer: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2025-05-07 08:06:29 +0000 URL: https://git.openjdk.org/jdk/commit/328715d84c0eafb4fe58d28b301138374ddac168
07-05-2025

Thanks, reviewed.
06-05-2025

pinging [~sgehwolf] as you might know more about the original parsing code.
06-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25041 Date: 2025-05-05 14:37:46 +0000
05-05-2025