On Fri, 1 Dec 2023 13:46:14 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> On Windows we recently run into this error rather often in the test > LdapPoolTimeoutTest.java : > > MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root > exception is java.net.ConnectException: Connection timed out: no further > information] > MSG: Connect timed out > MSG: Timeout exceeded while waiting for a connection: 26984ms > MSG: Timed out waiting for lock > MSG: Timed out waiting for lock > MSG: Timed out waiting for lock > MSG: Timeout exceeded while waiting for a connection: 26984ms > MSG: Timeout exceeded while waiting for a connection: 26984ms > java.lang.Exception: failures: 1 > at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:104) > at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58) > at > java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) > at java.base/java.lang.reflect.Method.invoke(Method.java:580) > at > com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) > at java.base/java.lang.Thread.run(Thread.java:1570) > > We should extend the accepted exception message strings and also also > 'Connection timed out' . Looks good and makes sense to accept this case as well since we see it occuring in real life. Maybe move the `|| msg.contains("Connection timed out")` into the next line. ------------- Marked as reviewed by clanger (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/16922#pullrequestreview-1759855858