[jdk8u-dev] Integrated: 8237834: com/sun/jndi/ldap/LdapDnsProviderTest.java failing with LDAP response read timeout
Takuya Kiriyama
tkiriyama at openjdk.org
Mon Feb 23 10:09:02 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.
This pull request has now been integrated.
Changeset: bc20d84b
Author: Takuya Kiriyama <tkiriyama at openjdk.org>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.org/jdk8u-dev/commit/bc20d84bc27e566762b20e3bb5e9ddac9ed86c12
Stats: 94 lines in 1 file changed: 80 ins; 10 del; 4 mod
8237834: com/sun/jndi/ldap/LdapDnsProviderTest.java failing with LDAP response read timeout
Reviewed-by: sgehwolf
Backport-of: 3f505750ed6959c0f2b130f29915d3dc27344da7
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/756
More information about the jdk8u-dev
mailing list