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

[#5287] Use epoll selector for file IO on macosx #5373

Merged
merged 1 commit into from Oct 26, 2018

Conversation

Projects
None yet
3 participants
@alexis779
Copy link
Contributor

alexis779 commented Oct 17, 2018

This PR addresses #5287.

Without it, unit test gets stuck on the select call. See Thread dump.

It needs jnr/jnr-enxio#29 feature to avoid KQSelector and fallback on EpollSelector. We pass isFile=true in NativeDeviceChannel constructor in the case of a file. This avoids getting stuck on macosx when calling kevent system call at the end of the file.

kqueue does not support EOF. There is no easy way to skip select call to avoid blocking for ever.

We still want to use KQSelector for sockets. Just not vnodes.

@kares

This comment has been minimized.

Copy link
Member

kares commented Oct 17, 2018

there seems to be an (unrelated) compilation failure with CI ... maybe you should rebase of recent master

@kares kares added this to the JRuby 9.2.1.0 milestone Oct 17, 2018

@alexis779

This comment has been minimized.

Copy link
Contributor Author

alexis779 commented Oct 17, 2018

[ERROR] /home/travis/build/jruby/jruby/core/src/main/java/org/jruby/util/RegularFileResource.java:[208,19] error: no suitable constructor found for NativeDeviceChannel(int,boolean)

NativeDeviceChannel is part of a different lib. We need to merge in jnr/jnr-enxio#29 in a new jnr-enxio release, version 0.19 ?

@alexis779 alexis779 force-pushed the alexis779:issue_5287 branch from 725496d to 9eb6d67 Oct 18, 2018

@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 26, 2018

I'm on it.

@headius headius merged commit 9eb6d67 into jruby:master Oct 26, 2018

1 check failed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
@headius

This comment has been minimized.

Copy link
Member

headius commented Oct 26, 2018

This may fail initially if the jnr-enxio 0.19 release has not propagated, but it's merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.