RFR: 8214733: runtime/8176717/TestInheritFD.java timed out

Harold Seigel hseigel at openjdk.java.net
Fri Jan 21 15:32:58 UTC 2022


Please review this small change to fix TestInheritFD.java.  The logs in the JBS bug indicate that the test probably timed out waiting for the lsof command to finish.  This fix adds the -a and +d <dir> options to the lsof command to limit its scope.  The +d option tells lsof to only look in the specified directory for open files.  The -a option combines the -p <pid> and the +d option.  (An alternative fix would be to use the -b option.)

The fix was tested by running the test 1000 times on Linux x64 and Mac OS aarch64.  The fix was also sanity tested on Linux aarch64, Mac OS x64, and windows.

Thanks, Harold

-------------

Commit messages:
 - 8214733: runtime/8176717/TestInheritFD.java timed out

Changes: https://git.openjdk.java.net/jdk/pull/7179/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7179&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8214733
  Stats: 5 lines in 1 file changed: 1 ins; 1 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7179.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7179/head:pull/7179

PR: https://git.openjdk.java.net/jdk/pull/7179


More information about the hotspot-runtime-dev mailing list