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

Takuya Kiriyama tkiriyama at openjdk.org
Tue Feb 10 10:54:43 UTC 2026


On Wed, 4 Feb 2026 01:56:53 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.

I'd be happy if someone could review this fix.

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

PR Comment: https://git.openjdk.org/jdk8u-dev/pull/756#issuecomment-3876858669


More information about the jdk8u-dev mailing list