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

Removed JAVA_HOME using only LS_JAVA_HOME #13214

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

andsel
Copy link
Contributor

@andsel andsel commented Sep 8, 2021

Don't backport to 7.x

Release notes

Logstash's launch script support LS_JAVA_HOME and abandon the JAVA_HOME.
It's the path to an installed JDK to be used to launch Logstash's service and support tools.
JAVA_HOME is not anymore looked at, only LS_JAVA_HOME.

What does this PR do?

Removes the usage of JAVA_HOME completely, that environment variable is not anymore used for JDK path resolution.

Updated all the Logstash launching scripts to use only LS_JAVA_HOME as environment variable to
determine the JDK to use to launch Logstash. JAVA_HOME is abandoned for this job.

Why is it important/What is the impact to the user?

Already with PR #13204 JAVA_HOME was considered deprecated, this is important for the user because let them to separate JDKs for each JVM process, without implicit interference with the global JAVA_HOME.

Checklist

  • My code follows the style guidelines of this project
  • [] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

Use same testing path described in #13204

Related issues

Use cases

Screenshots

Logs

Copy link
Contributor

@roaksoax roaksoax left a comment

Choose a reason for hiding this comment

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

LGTM! The only one thing I'd ask you to do is to remove "JAVA_HOME" from the bug template in master:

.github/ISSUE_TEMPLATE/bug.md

Updated all the Logstash launching scripts to use only LS_JAVA_HOME as environment variable to
determine the JDK to use to launch Logstash. JAVA_HOME is abandoned for this job.
@andsel andsel force-pushed the feature/remove_java_home_8.0 branch from c6e9d9a to 9c82909 Compare September 14, 2021 15:23
@andsel andsel merged commit d51afe5 into elastic:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants