eclipse-vertx / eclipse-vertx/vert.x
Intermittent test exception: failed to register an accepted channel
- Dominant language
- Java
- Stars
- 14.7k
- Forks
- 2.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 28
Description
### Version
5.1
### Context
This exception happens intermittently in the Vert.x core test suite:
```
[vert.x-acceptor-thread-0] WARN io.netty.bootstrap.ServerBootstrap - Failed to register an accepted channel: [id: 0x26ff2859, L:0.0.0.0/0.0.0.0:1234]
java.lang.IllegalStateException
at io.vertx.core@5.1.0-SNAPSHOT/io.vertx.core.net.impl.VertxEventLoopGroup.next(VertxEventLoopGroup.java:37)
at io.vertx.core@5.1.0-SNAPSHOT/io.vertx.core.net.impl.VertxEventLoopGroup.register(VertxEventLoopGroup.java:53)
at io.netty.transport@4.2.12.Final/io.netty.bootstrap.ServerBootstrap$ServerBootstrapAcceptor.channelRead(ServerBootstrap.java:247)
at io.netty.transport@4.2.12.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.transport@4.2.12.Final/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1429)
```
It doesn't block the build of fail any test, and it doesn't seem to be specific to a transport, although it happens more often with `io_uring`.
This is probably related to `io.vertx.core.net.impl.tcp.NetServerImpl#handleShutdown` :
https://github.com/eclipse-vertx/vert.x/blob/b0d625f1c559bb0d2250ae5435295b340e7c1cf5/vertx-core/src/main/java/io/vertx/core/net/impl/tcp/NetServerImpl.java#L612
Contributor guide
Assessment
This issue has not been assessed yet.