vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

Intermittent test failures in Healthcheck tests and StaticHandlerTest #2551

Closed tsegismont closed 4 months ago

tsegismont commented 11 months ago

For example:

2023-12-15T05:05:23.1433709Z Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.094 sec <<< FAILURE! - in io.vertx.ext.web.healthchecks.AuthenticationTest
2023-12-15T05:05:23.1437153Z testAuthenticationSuccessfulUsingBody(io.vertx.ext.web.healthchecks.AuthenticationTest)  Time elapsed: 0.016 sec  <<< ERROR!
2023-12-15T05:05:23.1439302Z io.vertx.core.impl.NoStackTraceThrowable: Pool closed
2023-12-20T05:03:03.9789358Z Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.095 sec <<< FAILURE! - in io.vertx.ext.web.healthchecks.HealthCheckWithSubRouterWithoutRouteTest
2023-12-20T05:03:03.9792576Z testWithExplicitSuccessfulCheck(io.vertx.ext.web.healthchecks.HealthCheckWithSubRouterWithoutRouteTest)  Time elapsed: 0.01 sec  <<< ERROR!
2023-12-20T05:03:03.9794448Z io.vertx.core.impl.NoStackTraceThrowable: Pool closed
2023-12-21T05:05:47.4666194Z Starting test: StaticHandlerTest#testWithClassLoader 
2023-12-21T05:05:47.4713499Z io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8080
2023-12-21T05:05:47.4715548Z Caused by: java.net.ConnectException: Connection refused
2023-12-21T05:05:47.4717123Z    at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
2023-12-21T05:05:47.4718845Z    at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
2023-12-21T05:05:47.4720572Z    at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
2023-12-21T05:05:47.4722379Z    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:335)
2023-12-21T05:05:47.4724474Z    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
2023-12-21T05:05:47.4726077Z    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
2023-12-21T05:05:47.4727816Z    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
2023-12-21T05:05:47.4729212Z    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
2023-12-21T05:05:47.4730637Z    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
2023-12-21T05:05:47.4732348Z    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
2023-12-21T05:05:47.4733946Z    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
2023-12-21T05:05:47.4735208Z    at java.base/java.lang.Thread.run(Thread.java:829)
2
tsegismont commented 11 months ago

This seems to be in main branch only (Vert.x 5). It happens with any of the JDK or OS version.

tsegismont commented 11 months ago

cc @vietj (in case that rings a bell)