RFR: 8265309: com/sun/jndi/dns/ConfigTests/Timeout.java fails with "Address already in use" BindException [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Thu May 27 16:04:09 UTC 2021


On Thu, 27 May 2021 15:57:27 GMT, Aleksei Efimov <aefimov at openjdk.org> wrote:

>> Hi,
>> 
>> `com/sun/jndi/dns/ConfigTests/Timeout.java ` was seen failing intermittently with "Address already in use" `BindException`. The reason of this failure is that `disconnect` call in JNDI `DnsClient` fails to rebind the datagram socket to the original port during `disconnect` call (the failure is in `DatagramChannel::repairSocket`).   
>> Since Datagram socket is not reused and closed after the failure `finally` block with the `disconnect` call can be removed.
>> 
>> The fix was tested with all available JNDI/DNS tests, and no failures related to the change were observed.
>
> Aleksei Efimov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add bug id to Timeout.java jtreg header

Marked as reviewed by dfuchs (Reviewer).

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

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


More information about the core-libs-dev mailing list