[jdk8u-dev] RFR: 8237834: com/sun/jndi/ldap/LdapDnsProviderTest.java failing with LDAP response read timeout
Takuya Kiriyama
tkiriyama at openjdk.org
Wed Feb 4 02:01:20 UTC 2026
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.
-------------
Commit messages:
- 8237834: com/sun/jndi/ldap/LdapDnsProviderTest.java failing with LDAP response read timeout
Changes: https://git.openjdk.org/jdk8u-dev/pull/756/files
Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=756&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8237834
Stats: 95 lines in 1 file changed: 81 ins; 10 del; 4 mod
Patch: https://git.openjdk.org/jdk8u-dev/pull/756.diff
Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/756/head:pull/756
PR: https://git.openjdk.org/jdk8u-dev/pull/756
More information about the jdk8u-dev
mailing list