4.1.9 breaks epoll selector rebuild
See original GitHub issueThe following commit appears to break the epoll selector rebuild logic in rebuildSelector():
https://github.com/netty/netty/commit/795f318c3c11ec0520e7acd963ad4b310c287c20
If the logic is fired by an excessive number of premature returns, you will hit an exception like this:
java.lang.ClassCastException: io.netty.channel.nio.SelectedSelectionKeySetSelector cannot be cast to java.nio.channels.spi.AbstractSelector
at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:212)
at io.netty.channel.nio.NioEventLoop.rebuildSelector0(NioEventLoop.java:347)
at io.netty.channel.nio.NioEventLoop.rebuildSelector(NioEventLoop.java:318)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:769)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:388)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Thread.java:745)
Looks like a case of replacing the selector member with the unwrappedSelector() method may have been missed?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
[MC-118372] Faulty netty-4.1.9.Final release causes players ...
*WARNING: Selector.select() returned prematurely 512 times in a row; rebuilding Selector *io.netty.channel.nio.SelectedSelectionKeySetSelector@ ...
Read more >Epoll is fundamentally broken 1/2 - popcount.org
Select (2) being fundamentally broken. This time we'll focus on Linux's select(2) successor - the epoll(2) I/O multiplexing syscall ...
Read more >Onload User Guide
rpmbuild --rebuild enterpriseonload-<version>.src.rpm. Or as a non-root user: ... poll(), select() and epoll_wait() will enter the kernel and block.
Read more >json-c bug fix and enhancement update
That breaks building from the srpm (dave.kleikamp@oracle.com) ... [4.18.0-193.13.2_2] - Rebuild to get kernel image properly signed (Bruno Meneguele) ...
Read more >Changelog - http4s
requires an I/O-integrated runtime for Cats Effect such as epollcat; requires s2n-tls ... It breaks binary compatibility and drops support for Scala 2.12....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Apologies @normanmaurer , looks like a packaging error on our behalf caused the incorrect version to be used.
Thanks for looking anyway
No worries… more unit tests FTW