Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Nov 15, 2019

Tasks intending to use a particular java home provided by JAVA_HOME
use the getJavaHome method, which verifies the given java home is
available, or will be if the task will run. However, the verification
logic was broken, in addition to unnecessarily delaying retrieving the
java home until runtime. This commit fixes the verification logic to run
at either config time, delaying verification, or at runtime which
immediately checks if java home is available.

closes #49153

Tasks intending to use a particular java home provided by JAVA<N>_HOME
use the getJavaHome method, which verifies the given java home is
available, or will be if the task will run. However, the verification
logic was broken, in addition to unnecessarily delaying retrieving the
java home until runtime. This commit fixes the verification logic to run
at either config time, delaying verification, or at runtime which
immediately checks if java home is available.

closes elastic#49153
@rjernst rjernst added >bug :Delivery/Build Build or test infrastructure v8.0.0 v7.6.0 labels Nov 15, 2019
@rjernst rjernst requested a review from mark-vieira November 15, 2019 21:52
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

Minor comments, otherwise LGTM

@rjernst rjernst merged commit b005949 into elastic:master Nov 19, 2019
@rjernst rjernst deleted the java_home_validation branch November 19, 2019 18:18
rjernst added a commit that referenced this pull request Nov 19, 2019
Tasks intending to use a particular java home provided by JAVA<N>_HOME
use the getJavaHome method, which verifies the given java home is
available, or will be if the task will run. However, the verification
logic was broken, in addition to unnecessarily delaying retrieving the
java home until runtime. This commit fixes the verification logic to run
at either config time, delaying verification, or at runtime which
immediately checks if java home is available.

closes #49153
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Dec 6, 2019
This was leftover from debugging elastic#49204.
rjernst added a commit that referenced this pull request Dec 9, 2019
This was leftover from debugging #49204.
rjernst added a commit that referenced this pull request Dec 9, 2019
This was leftover from debugging #49204.
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
@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

>bug :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails with NPE when JAVA8_HOME is not set

4 participants