JDK-8211847 : [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2018-10-08
  • Updated: 2024-06-28
  • Resolved: 2024-06-13
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 21 JDK 23 JDK 24
21.0.5Fixed 23Fixed 24 b03Fixed
Related Reports
Relates :  
Description
This test fails sporadically on aix. Is this a testbug?
Comments
Fix request (21u) It seems the test does not fail any more on AIX, also in JDK 21. So let's backport its problemlist removal. No risk. Tested in SAP CI.
26-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/764 Date: 2024-06-19 16:05:39 +0000
19-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19742 Date: 2024-06-17 08:19:18 +0000
17-06-2024

Changeset: f5213671 Author: Christoph Langer <clanger@openjdk.org> Date: 2024-06-13 13:14:54 +0000 URL: https://git.openjdk.org/jdk/commit/f5213671f7b636b32bb93c78e43696a61cd69bae
13-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19691 Date: 2024-06-13 09:47:25 +0000
13-06-2024

It seems that the test does not fail any more. We ran it for a long time now at SAP's test env and couldn't spot it again. So let's remove the exclusion.
13-06-2024

This does seem to be an intermittent failure on AIX. The test fails because on some occasions the totalTime returned in the ProcessHandle.Info is PT0S (ie 0 seconds). The tests checks to see if this is less than PT0.2S (200 milli seconds), which in this case it does so the test fails. On a successful test the totalTime returned is something like PT0.621946937S, which is greater than PT0.2S, so this passes.
06-12-2018