[jdk8u-dev] RFR: 8237834: com/sun/jndi/ldap/LdapDnsProviderTest.java failing with LDAP response read timeout [v2]

Severin Gehwolf sgehwolf at openjdk.org
Thu Feb 19 09:44:44 UTC 2026


On Thu, 19 Feb 2026 02:04:21 GMT, Takuya Kiriyama <tkiriyama at openjdk.org> wrote:

>> Hi All,
>> 
>> JDK-8237834 is being backported from JDK 15 to JDK 8 to resolve instability and test failures in the JDK's LDAP DNS provider test. The issue stems from indefinite waits for LDAP responses when tests connect to unintended services on hardcoded localhost ports. The fix introduces a retry mechanism using different random ports until a "connection refused" error is received, and improves logging for better diagnostic insights, ultimately enhancing test robustness by preventing intermittent failures.
>> 
>> Additionally, this backport is equivalent to the fix applied in JDK 11 except with the @module annotation. This equivalence ensures consistency and demonstrates that the adjustments are robust and have been previously validated on other versions.
>> 
>> Would anyone review this fix?
>> 
>> Thank you.
>
> Takuya Kiriyama has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update jdk/test/com/sun/jndi/ldap/LdapDnsProviderTest.java
>   
>   Co-authored-by: Severin Gehwolf <jerboaa at gmail.com>

Looks good.

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

Marked as reviewed by sgehwolf (Reviewer).

PR Review: https://git.openjdk.org/jdk8u-dev/pull/756#pullrequestreview-3824509697


More information about the jdk8u-dev mailing list