On Thu, 29 Jan 2026 02:35:23 GMT, SendaoYan <[email protected]> wrote:
> Hi all, > > Test java/lang/ProcessBuilder/PipelineLeaksFD.java intermittent timed out, > because `lsof` invoke huast lots of time when the tested machine has many > processes, and the processes open too many files. > > This PR add parameter -p pid to `lsof`, which will only generate output from > the wanted processes, rather than all the processes on the machine, this will > make `lsof` use less time to finish significantly. And this PR also use > `Process.waitFor(long timeout, TimeUnit unit)` instead of `waitFor()` which > will avoid waitFor invoke cause test timed out. Delete the history lsof input > and output files will make diagnosis more easy. > > Change has been verifed locally. The imtermittent timed out do not observed > anymore. This pull request has now been integrated. Changeset: 14a6e928 Author: SendaoYan <[email protected]> URL: https://git.openjdk.org/jdk/commit/14a6e928ce9a10f6d85fae8db4ce303da20bde85 Stats: 9 lines in 1 file changed: 6 ins; 0 del; 3 mod 8376630: java/lang/ProcessBuilder/PipelineLeaksFD.java intermittent timed out Reviewed-by: rriggs ------------- PR: https://git.openjdk.org/jdk/pull/29478
