This is one of these tests that is not really fixable if any other process that 
might open a socket runs concurrently with it on the same machine: nothing can 
guarantee that if you open a socket, close it, then open a new socket on the 
same port, that port will still be free. It might work most of the time, but 
success can’t be guaranteed.

The only thing we can do in order to attempt to minimize noisy intermittent 
failures is retry the whole test if a BindException is thrown.

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

Commit messages:
 - 8241550

Changes: https://git.openjdk.org/jdk/pull/19358/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19358&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8241550
  Stats: 19 lines in 1 file changed: 18 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19358.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19358/head:pull/19358

PR: https://git.openjdk.org/jdk/pull/19358

Reply via email to