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

Fix Snapshot CLI Build Portability #44919

Conversation

original-brownbear
Copy link
Member

The snapshot CLI tool does not use the java in JAVA_HOME but instead uses it from the PATH which will lead to some portability issues with the wrong java being used as the ES build itself does allow for having a different java than what is in JAVA_HOME on the PATH.

For the discussion here #44551 (comment)

The snapshot CLI tool does not use the `java` in `JAVA_HOME` but instead uses it from the `PATH` which will lead to some portability issues with the wrong `java` being used as the ES build itself does allow for having a different `java` than what is in `JAVA_HOME` on the `PATH`
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@original-brownbear
Copy link
Member Author

Jenkins run elasticsearch-ci/2
Jenkins run elasticsearch-ci/packaging-sample

Copy link
Contributor

@andrershov andrershov left a comment

Choose a reason for hiding this comment

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

LGTM, would be nice to confirm that the fix works fine for @imotov

Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. It worked! Thanks for fixing it! LGTM2

@original-brownbear
Copy link
Member Author

Thanks @andrershov and @imotov !

@original-brownbear original-brownbear merged commit 21fb690 into elastic:master Jul 29, 2019
@original-brownbear original-brownbear deleted the fix-snapshot-cli-launch-script branch July 29, 2019 16:03
andrershov pushed a commit to andrershov/elasticsearch that referenced this pull request Jul 29, 2019
The snapshot CLI tool does not use the `java` in `JAVA_HOME` but
instead uses it from the `PATH` which will lead to some portability
issues with the wrong `java` being used as the ES build itself does
allow for having a different `java` than what is in `JAVA_HOME` on the
`PATH`

(cherry picked from commit 21fb690)
jkakavas pushed a commit that referenced this pull request Jul 31, 2019
The snapshot CLI tool does not use the `java` in `JAVA_HOME` but instead uses it from the `PATH` which will lead to some portability issues with the wrong `java` being used as the ES build itself does allow for having a different `java` than what is in `JAVA_HOME` on the `PATH`
@original-brownbear original-brownbear restored the fix-snapshot-cli-launch-script branch January 6, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue v7.4.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants