Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to netty 4.1.77.Final to address epoll_wait() not implemented on Linux #514

Closed
jczuchnowski opened this issue May 23, 2022 · 1 comment · Fixed by #516
Closed
Labels
type: dependency-upgrade A dependency upgrade

Comments

@jczuchnowski
Copy link
Contributor

jczuchnowski commented May 23, 2022

Bug Report

Versions

  • Driver: 1.0.0.BUILD-SNAPSHOT
  • Database: PostgreSQL 14
  • Java: OpenJDK 11.0.15
  • OS: Manjaro Linux (5.4.192-1-MANJARO)

Current Behavior

On my Linux machine with the current version of r2dbc-postgresql on master (1.0.0.BUILD-SNAPSHOT built locally) my database calls fail with the following error:

io.netty.channel.epoll.EpollEventLoop handleLoopException
WARNING: Unexpected exception in the selector loop.
io.netty.channel.unix.Errors$NativeIoException: epoll_wait(..) failed: Function not implemented

Steps to reproduce

I suppose any query will have this problem on Linux, but I used this in particular in Scala 3

val result = factory.create.flux
    .flatMap(_.createStatement("DELETE FROM items").execute)
    .flatMap(_.getRowsUpdated)
    .collectList.block

And here's the link to a repo with the example https://github.com/jczuchnowski/r2dbc-example

Possible Solution

This problem was probably solved here netty/netty#12343 with version of Netty 4.1.77.Final but r2dbc-postgresql is transitively using 4.1.76.Final.

@jczuchnowski jczuchnowski added the status: waiting-for-triage An issue we've not yet triaged label May 23, 2022
@mp911de mp911de added for: external-project For an external project and not something we can fix type: dependency-upgrade A dependency upgrade and removed status: waiting-for-triage An issue we've not yet triaged for: external-project For an external project and not something we can fix labels May 24, 2022
@mp911de mp911de changed the title Netty error - epoll_wait() not implemented on Linux Upgrade to netty 4.1.77.Final to address epoll_wait() not implemented on Linux May 24, 2022
@jczuchnowski
Copy link
Contributor Author

The workaround is to add a dependency to your project that would force the use of newer netty-transport-native-epoll version. In particular for sbt (Scala) it would look like this:

"io.netty" % "netty-transport-native-epoll" % "4.1.77.Final"

mp911de pushed a commit that referenced this issue May 25, 2022
mp911de pushed a commit that referenced this issue May 25, 2022
mp911de pushed a commit that referenced this issue May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: dependency-upgrade A dependency upgrade
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants