[15] RFR: 8202117: com/sun/jndi/ldap/RemoveNamingListenerTest.java fails intermittently: Connection reset

Chris Yin xu.y.yin at oracle.com
Fri Mar 13 08:28:22 UTC 2020


Please review following changes to try to fix intermittent failure of test com/sun/jndi/ldap/RemoveNamingListenerTest.java, thanks

Bug: https://bugs.openjdk.java.net/browse/JDK-8202117
Webrev: http://cr.openjdk.java.net/~xyin/8202117/webrev.00/

According to failure logs, test already run done and give a pass message, but test framework caught “java.lang.RuntimeException: java.net.SocketException: Connection reset” from other thread during test end, go through the test code, LDAPServerHandler thread may throw such exception in specific case. This change will replace test itself implemented TestLDAPServer/LDAPServerHandler with customized BaseLdapServer to fix the corner. I had run the changed test on 4 platforms for total 600 times, no failure observed.


More information about the core-libs-dev mailing list