question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.1.9 breaks epoll selector rebuild

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
md-5commented, Jul 16, 2017

Apologies @normanmaurer , looks like a packaging error on our behalf caused the incorrect version to be used.

Thanks for looking anyway

0reactions
normanmaurercommented, Jul 16, 2017

No worries… more unit tests FTW

Am 16.07.2017 um 03:44 schrieb md-5 notifications@github.com:

Apologies @normanmaurer , looks like a packaging error on our behalf caused the incorrect version to be used.

Thanks for looking anyway

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found