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

Honor runtime JDK in provisioner #673

Conversation

danielmitterdorfer
Copy link
Member

@danielmitterdorfer danielmitterdorfer commented Apr 1, 2019

We currently rely on java being available on the PATH when
provisioning an Elasticsearch node but instead we should be consistent
and always use the specified runtime JDK when provisoning a node. With
this commit we determine the correct runtime JDK and set it as
JAVA_HOME when provisioning a node.

Relates elastic/rally-teams#24

We currently rely on `java` being available on the PATH when
provisioning an Elasticsearch node but instead we should be consistent
and always use the specified runtime JDK when provisoning a node. With
this commit we determine the correct runtime JDK and set it as
`JAVA_HOME` when provisioning a node.
@danielmitterdorfer danielmitterdorfer added bug Something's wrong :Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch labels Apr 1, 2019
@danielmitterdorfer danielmitterdorfer added this to the 1.1.0 milestone Apr 1, 2019
@danielmitterdorfer
Copy link
Member Author

Note that this change is backwards-compatible and can be merged independently of elastic/rally-teams#24.

@danielmitterdorfer
Copy link
Member Author

Steps to reproduce the problem:

unset JAVA_HOME
esrally --test-mode --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'rally',basic_auth_password:'rally-password'" --car="4gheap,x-pack-security" --revision=latest

@danielmitterdorfer danielmitterdorfer changed the title Honor JAVA_HOME in provisioner Honor runtime JDK in provisioner Apr 1, 2019
danielmitterdorfer added a commit to elastic/rally-teams that referenced this pull request Apr 3, 2019
So far we implicitly rely on `java` being available on the path.
However, we should rather use the runtime JDK for post-install hooks
similarly to the runtime JDK that we use when invoking Elasticsearch
itself.

Relates elastic/rally#673
Relates #24
danielmitterdorfer added a commit to elastic/rally-teams that referenced this pull request Apr 3, 2019
So far we implicitly rely on `java` being available on the path.
However, we should rather use the runtime JDK for post-install hooks
similarly to the runtime JDK that we use when invoking Elasticsearch
itself.

Relates elastic/rally#673
Relates #24
danielmitterdorfer added a commit to elastic/rally-teams that referenced this pull request Apr 3, 2019
So far we implicitly rely on `java` being available on the path.
However, we should rather use the runtime JDK for post-install hooks
similarly to the runtime JDK that we use when invoking Elasticsearch
itself.

Relates elastic/rally#673
Relates #24
Copy link
Contributor

@ebadyano ebadyano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@danielmitterdorfer danielmitterdorfer merged commit 2f559cd into elastic:master Apr 3, 2019
@danielmitterdorfer danielmitterdorfer deleted the honor-java-home-for-provisioner branch April 3, 2019 13:13
@danielmitterdorfer
Copy link
Member Author

Thanks for the review! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch bug Something's wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants