JDK-8046768 : [TEST_BUG] com/sun/jndi/ldap/LdapTimeoutTest.java fails intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 7,9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-06-13
  • Updated: 2017-11-29
  • Resolved: 2015-08-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u201Fixed 8u152Fixed 9 b80Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
TESTFAIL:com/sun/jndi/ldap/LdapTimeoutTest.java

com/sun/jndi/ldap/LdapTimeoutTest.java failed intermittently in jdk9/b16 same binaries run. Failed 4 (out of 184) times so far. 

Not see this failure in previous same binaries testing, also not yet see this failure in jdk9-dev nightly testing.

----------System.out:(3/25)----------

Passed = 3, failed = 1

----------System.err:(24/1329)----------
fail: timeout should be at least 15 seconds, actual time: 23
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1329)
	at LdapTimeoutTest.fail(LdapTimeoutTest.java:48)
	at LdapTimeoutTest.deadServerNoTimeout(LdapTimeoutTest.java:160)
	at LdapTimeoutTest.main(LdapTimeoutTest.java:69)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:484)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)
java.lang.AssertionError: Some tests failed
	at LdapTimeoutTest.main(LdapTimeoutTest.java:82)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:484)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed


Comments
Test fails intermittently in 7u-cpu on Linux x32: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=750856.CORELIBS-JDK7u-NIGHTLY-JTREG-10
25-03-2015

Seen same on jdk7u-dev test run : STDERR: fail: timeout should be at least 15 seconds, actual time: 21 java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1365) at LdapTimeoutTest.fail(LdapTimeoutTest.java:48) at LdapTimeoutTest.deadServerNoTimeout(LdapTimeoutTest.java:160) at LdapTimeoutTest.main(LdapTimeoutTest.java:69) side note : One suspicious piece of code seems to be the System.exit(0) call in killSwitch method. I don't think it's standard practice for jtreg - throwing a RuntimeException might be more appropriate.
02-07-2014