Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287672

jtreg test com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails intermittently in nightly run

XMLWordPrintable

    • b03
    • Not verified

        LdapPoolTimeoutTest.java which was added as part of JDK-8277795 changes is failing intermittently on 8u nightly runs (Aurora) on Linux platform(both x86 & x64).
         
        From the log, I can see the test is failing at the following assertTrue statement.
        Here RuntimeException thrown has a different message – “javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.NoRouteToHostException: No route to host (Host unreachable)]”

        This particular exception msg seems to be not handled in the current test code.
        ----------
        catch (RuntimeException e) {
                    String msg = e.getCause() == null ? e.getMessage() : e.getCause().getMessage();
                    System.err.println("MSG RTE: " + msg);
                    // assertCompletion may wrap a CommunicationException in an RTE
                    assertTrue(msg != null && msg.contains("Network is unreachable"));
        }
        ------

        I have attached the complete log for the same.
        Also pasting the relevant snippet here:
         
        [TestNG] Running:
          com/sun/jndi/ldap/LdapPoolTimeoutTest.java
         
        java.lang.AssertionError: expected [true] but found [false]
                at org.testng.Assert.fail(Assert.java:94)
                at org.testng.Assert.failNotEquals(Assert.java:496)
                at org.testng.Assert.assertTrue(Assert.java:42)
                at org.testng.Assert.assertTrue(Assert.java:52)
                at LdapPoolTimeoutTest.attemptConnect(LdapPoolTimeoutTest.java:124)
                at LdapPoolTimeoutTest.lambda$test$5(LdapPoolTimeoutTest.java:96)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:750)
        java.lang.AssertionError: expected [true] but found [false]
                at org.testng.Assert.fail(Assert.java:94)
                at org.testng.Assert.failNotEquals(Assert.java:496)
                at org.testng.Assert.assertTrue(Assert.java:42)
                at org.testng.Assert.assertTrue(Assert.java:52)
                at LdapPoolTimeoutTest.attemptConnect(LdapPoolTimeoutTest.java:124)
                at LdapPoolTimeoutTest.lambda$test$6(LdapPoolTimeoutTest.java:97)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:750)
        test LdapPoolTimeoutTest.test(): failure
        java.lang.RuntimeException: 2 (sub)tests failed
                at LdapPoolTimeoutTest.test(LdapPoolTimeoutTest.java:112)
                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:498)
                at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
                at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
                at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
                at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
                at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
                at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
                at org.testng.TestRunner.privateRun(TestRunner.java:773)
                at org.testng.TestRunner.run(TestRunner.java:623)
                at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
                at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
                at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
                at org.testng.SuiteRunner.run(SuiteRunner.java:259)
                at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
                at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
                at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
                at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
                at org.testng.TestNG.run(TestNG.java:1018)
                at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
                at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
                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:498)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                at java.lang.Thread.run(Thread.java:750)
         
        ===============================================
        com/sun/jndi/ldap/LdapPoolTimeoutTest.java
        Total tests run: 1, Failures: 1, Skips: 0
        ===============================================
         
        ----------System.err:(22/1268)----------
        MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.NoRouteToHostException: No route to host (Host unreachable)]
        MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.NoRouteToHostException: No route to host (Host unreachable)]
        MSG: Timed out waiting for lock
        MSG: Timed out waiting for lock
        MSG: Timed out waiting for lock
        MSG: Timed out waiting for lock
        MSG: Timed out waiting for lock
        MSG: connect timed out
        java.lang.Exception: failures: 1

              robm Robert Mckenna
              robm Robert Mckenna
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: