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

Remove JNI permissions, improve JNI testing. #10962

Merged
merged 1 commit into from May 4, 2015
Merged

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented May 4, 2015

We don't need to allow JNI loadLibrary permissions since this is easy to do up-front first (which we mostly do already). However, the testing around some of this is suboptimal, if you run tests with 4 jvms, one will get mlockall'd or get console control handler installed (depending on which jvm runs NativesTests). Nothing checks that sigar is working or is not.

So instead explicitly force any JNI stuff to be loaded (e.g. sigar happens implicitly today during the node initialization, but that could easily break somehow during refactoring). Do this also when running tests, and test that sigar works, test that windows control handler gets installed on windows, etc.

@rmuir
Copy link
Contributor Author

rmuir commented May 4, 2015

I tested this on linux, os X, and windows.

@jpountz
Copy link
Contributor

jpountz commented May 4, 2015

LGTM

rmuir added a commit that referenced this pull request May 4, 2015
Remove JNI permissions, improve JNI testing.
@rmuir rmuir merged commit 54d3612 into elastic:master May 4, 2015
@kevinkluge kevinkluge removed the review label May 4, 2015
@clintongormley clintongormley added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts labels Jun 8, 2015
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants