RFR: 8334928: Test sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed: java.net.BindException: Address already in use
Rajan Halade
rhalade at openjdk.org
Fri Nov 21 03:43:16 UTC 2025
On Fri, 7 Nov 2025 14:39:14 GMT, Neha Joshi <duke at openjdk.org> wrote:
> This tests is not fixable and reproducible. The only thing we can do in order to minimize intermittent failures is increasing the retry count and adding a thread.sleep() before retrying.
>
> **Reason for adding the Thread.sleep()**
> This issue is happening under load and other tests might take the port, as there is no visibility between tests. Sleep should increase the chances of these tests releasing the port.
>
> Old PR link for the reference :- https://github.com/openjdk/jdk/pull/19358
I don't like that we have to fix with this change but this is minimal that can be done and doesn't impact test scenario.
-------------
Marked as reviewed by rhalade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28198#pullrequestreview-3491064253
More information about the security-dev
mailing list