JDK-8240704 : ProcessBuilder/checkHandles/CheckHandles.java failed "AssertionError: Handle use increased by more than 10 percent."
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-03-07
  • Updated: 2020-12-15
  • Resolved: 2020-03-12
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 11 JDK 15
11.0.11-oracleFixed 15 b15Fixed
Related Reports
Relates :  
Description
The following test failed in the JDK15 CI:

java/lang/ProcessBuilder/checkHandles/CheckHandles.java

Here's a snippet from the log file:

----------System.out:(4/71)----------
mypid: 33796
Processes started: 50
minhandles: 414
maxhandles: 461
----------System.err:(12/739)----------
java.lang.AssertionError: Handle use increased by more than 10 percent.
	at CheckHandles.main(CheckHandles.java:81)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Handle use increased by more than 10 percent.


test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Handle use increased by more than 10 percent.


Starting this bug as a P2 since this is a Tier1 failure.
Comments
Fix Request (11u, moved here from the backport issue): Backport to 11u requested because it is a part of 11.0.11-oracle. Besides that JDK-8258261 backport depends on it. The patch is to test-code only and applies cleanly. Testing: checked that changed test passes on Windows.
15-12-2020

Note: I am backporting this to 11u and I was advised to add Fix Requests to backport issues instead of the main one - added it for 11u there: JDK-8258274 .
14-12-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/910e8900f11d User: rriggs Date: 2020-03-12 15:55:47 +0000
12-03-2020

New test added by JDK-8239893.
08-03-2020